# Contributor: Marian Buschsieweke # Maintainer: Marian Buschsieweke pkgname=soapy-sdr pkgver=0.7.2 pkgrel=0 pkgdesc="Soapy SDR - vendor and platform neutral SDR support library" url="https://github.com/pothosware/SoapySDR" arch="all" license="BSL-1.0" makedepends="cmake python3-dev swig" subpackages="$pkgname-dev $pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/pothosware/SoapySDR/archive/soapy-sdr-$pkgver.tar.gz" builddir="$srcdir/SoapySDR-soapy-sdr-$pkgver" build() { cmake -B build \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib cmake --build build } check() { cmake --build build --target test } package() { DESTDIR="$pkgdir" cmake --build build --target install } sha512sums="2454b9b6bf4542f3bce2c6a8e1c886cee9179ca0e13e3c1e22817a05ef671428a3cb8fea69e496c8b62573f360c248508edf3d0871ec5063dfac8211b122d371 soapy-sdr-0.7.2.tar.gz"