aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gr-osmosdr/APKBUILD
blob: 352487fc897a52115d823f61c9a6e7bf314af378 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=gr-osmosdr
pkgver=0.2.2
pkgrel=2
pkgdesc="osmocom Gnu Radio Blocks"
url="https://osmocom.org/projects/gr-osmosdr/wiki"
arch="x86_64 aarch64" # limited by libvolk and gnuradio
license="GPL-3.0-only"
subpackages="$pkgname-doc"
makedepends="
	boost-dev
	cmake
	doxygen
	fftw-dev
	gmp-dev
	gnuradio-dev
	graphviz
	hackrf
	librtlsdr-dev
	libvolk-dev
	log4cpp-dev
	mpir-dev
	python3-dev
	soapy-sdr-dev
	swig
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/osmocom/gr-osmosdr/archive/v$pkgver.tar.gz"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-Wno-dev
	cmake --build build
}

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

check() {
	cmake --build build --target test
}

sha512sums="42aef6efd35fd9184a371202398455de7cac3a88374e761359ab837a329495b653a95f5641f0a9533daeaa08c0d7fd5649b1b33359009dd4e8a3b9b24aedd2af  gr-osmosdr-0.2.2.tar.gz"