aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gnuradio/APKBUILD
blob: b206cb01c66f286358b9a192498d063f2e30047b (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=gnuradio
pkgver=3.8.2.0
pkgrel=2
pkgdesc="General purpose DSP and SDR toolkit"
url="https://www.gnuradio.org"
# libvolk only supports armv7, aarch64, x86_64. On armv7 other dependencies
# are not available, so it also not supported for now.
arch="aarch64 x86_64"
license="GPL-3.0-or-later"
checkdepends="xvfb-run"
makedepends="
	blas-dev
	boost-dev
	cmake
	doxygen
	fftw-dev
	gmp-dev
	graphviz
	gsl-dev
	gsm-dev
	gtk+3.0-dev
	libvolk-dev
	log4cpp-dev
	mpir-dev
	py3-sphinx
	python3-dev
	qt5-qtbase-dev
	qwt-dev
	swig
	"
depends="
	py3-cairo
	py3-gobject3
	py3-mako
	py3-numpy
	py3-qt5
	py3-six
	py3-yaml
	"
subpackages="$pkgname-doc $pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/gnuradio/gnuradio/releases/download/v$pkgver/gnuradio-$pkgver.tar.gz
	boost.patch
	"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DENABLE_INTERNAL_VOLK=OFF \
		-DENABLE_GRC=ON \
		-DENABLE_GR_QTGUI=ON \
		-DENABLE_PYTHON=ON \
		-Wno-dev
	cmake --build build
}

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

check() {
	# remove failing tests
	case "$CARCH" in
		x86_64)
			sed \
				-i build/gr-digital/python/digital/CTestTestfile.cmake \
				-e '/add_test(qa_constellation /d' \
				-e '/add_test(qa_constellation_soft_decoder_cf /d'
			;;
		aarch64)
			sed \
				-i build/gr-digital/python/digital/CTestTestfile.cmake \
				-e '/add_test(qa_constellation /d' \
				-e '/add_test(qa_constellation_soft_decoder_cf /d' \
				-e '/add_test(qa_filterbank /d'
			;;
	esac
	xvfb-run cmake --build build --target test
}

sha512sums="28ac794f3016ebf598467fda2ca90500f6479b773bb7d3c1c7e21fc1fdcac83f9e1973ef5ad9132f17333f786cf0f4a1d17c2b9256e4fa216c8e5bb7550d2474  gnuradio-3.8.2.0.tar.gz
9ea85fc17ae2910c268955097b9e36bd530fce1092451231df6b124f39440b2d03739d98132403d1dccf942346f0cf4a286988d10709d0c64e1fa225daf80a97  boost.patch"