1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 19:55:26 +03:00
aports/testing/uhd/APKBUILD
2023-01-31 23:46:22 +01:00

53 lines
1.1 KiB
Text

# Contributor: psykose <alice@ayaya.dev>
# Maintainer: psykose <alice@ayaya.dev>
pkgname=uhd
pkgver=4.4.0.0
pkgrel=0
pkgdesc="USRP Hardware Driver"
url="https://github.com/EttusResearch/uhd"
options="!check" # no tests
arch="all !armhf !s390x" # build failure
license="GPL-3.0-or-later"
makedepends="
boost-dev
cmake
libusb-dev
py3-mako
python3-dev
samurai
"
subpackages="$pkgname-dev $pkgname-libs $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/EttusResearch/uhd/archive/refs/tags/v$pkgver.tar.gz"
case "$CARCH" in
riscv64)
options="$options textrels"
;;
esac
build() {
case "$CARCH" in
aarch64)
local neon=ON
;;
*)
local neon=OFF
;;
esac
cmake -B build-host -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DNEON_SIMD_ENABLE=$neon \
host
cmake --build build-host
sed -i "s|Version:.*|Version: $pkgver|" build-host/uhd.pc
}
package() {
DESTDIR="$pkgdir" cmake --install build-host
}
sha512sums="
3c9b57dc776e0fadc991ffeede84c2367f7403bfae6fd30a045baf1c9cfb21889310b9a8340a35ea13eea00208bf678cccd7b82e190dfb6b9d61e42bdef3b21a uhd-4.4.0.0.tar.gz
"