aboutsummaryrefslogtreecommitdiffstats
path: root/testing/soapy-sdr/APKBUILD
blob: 43437d3e6ff62271cbb504d3b420ead6b76a694f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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"