diff options
Diffstat (limited to 'testing')
-rw-r--r-- | testing/soapy-sdr/APKBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/testing/soapy-sdr/APKBUILD b/testing/soapy-sdr/APKBUILD new file mode 100644 index 00000000000..43437d3e6ff --- /dev/null +++ b/testing/soapy-sdr/APKBUILD @@ -0,0 +1,31 @@ +# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de> +# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de> +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" |