# Maintainer:
pkgname=soapy-hackrf
pkgver=0.3.4
pkgrel=2
pkgdesc="SoapySDR HackRF module"
url="https://github.com/pothosware/SoapyHackRF"
options="!check" # no tests
arch="all"
license="BSL-1.0"
makedepends="
	cmake
	hackrf-dev
	samurai
	soapy-sdr-dev
	"
source="https://github.com/pothosware/SoapyHackRF/archive/refs/tags/soapy-hackrf-$pkgver.tar.gz"
builddir="$srcdir/SoapyHackRF-soapy-hackrf-$pkgver"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=MinSizeRel
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
950fc0d2d9b1a5946605d0f7f934a3d92facb6878251e8d9a673384db85e1b776ab27fd3499db11d482d599f78e705b9394b5e1238935d297252ab5acc8fb935  soapy-hackrf-0.3.4.tar.gz
"
