aports/testing/hackrf/APKBUILD
Marian Buschsieweke ab9e0d797c testing/hackrf: new aport
Driver for HackRF, allowing general purpose software defined radio
https://github.com/mossmann/hackrf
2020-11-20 07:37:46 +00:00

33 lines
1.0 KiB
Plaintext

# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=hackrf
pkgver=2018.01.1
pkgrel=0
pkgdesc="Driver for HackRF, allowing general purpose software defined radio"
url="https://github.com/mossmann/hackrf"
arch="all"
license="GPL-2.0-only"
options="!check" # no test suite
makedepends="libusb-dev fftw-dev cmake"
subpackages="$pkgname-firmware"
source="$pkgname-$pkgver.tar.xz::https://github.com/mossmann/hackrf/releases/download/v${pkgver}/hackrf-${pkgver}.tar.xz"
build() {
cmake -B build \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
host
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --build build --target install
}
firmware() {
find "$builddir/firmware-bin" -type f -exec install -Dm644 -t "$subpkgdir/usr/share/hackrf/" {} \;
}
sha512sums="89848fb58a8a29f7fe85bd817d5716117a2c7a5f2c4bb8582ad1ba8186831ca3054ea1314de943d1e923641eb18b6008cd8af79585e58fa50d55d5a7fd1b04e4 hackrf-2018.01.1.tar.xz"