summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 265c86c63232348a18595690fd8f22cae04ae7d2 (plain)
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
# Maintainer: edward-p <edward AT edward-p DOT xyz>

_pkgname=sdrpp-brown
pkgname="$_pkgname-git"
pkgver=v1.1709823358.r414.ec20cc23
pkgrel=2
pkgdesc="SDR++Brown (fork), is not the original bloat-free SDR software"
arch=(x86_64)
url="https://github.com/sannysanoff/SDRPlusPlusBrown"
license=(GPL-3.0-or-later)
depends=(fftw glew glfw libvolk)
_plugindeps=(airspy airspyhf-git bladerf codec2 hackrf libad9361 libiio libsdrplay limesuite rtaudio rtl-sdr portaudio soapysdr)
makedepends=(cmake git "${_plugindeps[@]}")
optdepends=("${_plugindeps[@]}")
provides=("$_pkgname" "sdrpp" "sdrpp-git")
conflicts=("$_pkgname" "sdrpp" "sdrpp-git")
source=("$_pkgname::git+https://github.com/sannysanoff/SDRPlusPlusBrown.git")
b2sums=('SKIP')

pkgver() {
	git -C $_pkgname describe --long --tags --exclude nightly | sed 's/\([^-]*-\)g/r\1/;s/-/./g'
}

build() {
	cmake -B build -S $_pkgname \
		-DOPT_BUILD_BLADERF_SOURCE=ON \
		-DOPT_BUILD_LIMESDR_SOURCE=ON \
		-DOPT_BUILD_SDRPLAY_SOURCE=ON \
		-DOPT_BUILD_NEW_PORTAUDIO_SINK=ON \
		-DOPT_BUILD_M17_DECODER=ON \
		-DCMAKE_POLICY_VERSION_MINIMUM=3.5
	make -C build
}

package() {
	make -C build DESTDIR="$pkgdir" install
	rm $pkgdir/usr/bin/itpp-config
	rm -rf $pkgdir/usr/include/itpp/
	rm $pkgdir/usr/include/mbelib.h
	rm $pkgdir/usr/lib/libitpp_static.a
	rm $pkgdir/usr/lib/libmbe*
	rm -rf $pkgdir/usr/lib/pkgconfig
	rm -rf $pkgdir/usr/share/itpp
	rm -rf $pkgdir/usr/share/man
}