# Maintainer: pkgname=airspyhf pkgver=1.6.8 pkgrel=1 pkgdesc="User mode driver for Airspy HF+" url="https://github.com/airspy/airspyhf" arch="aarch64 armv7 x86_64" license="BSD-3-Clause" depends_dev="$pkgname=$pkgver-r$pkgrel" makedepends=" cmake libusb-dev samurai " subpackages="$pkgname-dev $pkgname-libs" source="$pkgname-$pkgver.tar.gz::https://github.com/airspy/airspyhf/archive/refs/tags/$pkgver.tar.gz" options="!check" # no tests build() { CFLAGS="$CFLAGS -O2 -flto=auto -DNDEBUG" \ CXXFLAGS="$CXXFLAGS -O2 -flto=auto -DNDEBUG" \ cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_SKIP_INSTALL_RPATH=ON cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" cc327012f51514935b422d07e54f1806f2a22d900a2bfe2e10adac9acca572ada3853709f0c37300b387061bc7559dcf10eae6814a06e22e8c765f1409b66f59 airspyhf-1.6.8.tar.gz "