summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2d2cf217b953f3dc8de8c7c69c90957ef2308f8b (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
# Maintainer: Albert Briscoe <albertsbriscoe@gmail.com>

pkgname=gqrx-nrsc5-git
pkgver=v2.15.9.r13.g78992b2
pkgrel=1
pkgdesc="Interactive SDR receiver, with NRSC-5 (HD Radio) support"
arch=('x86_64')
url="https://github.com/Albert-S-Briscoe/gqrx/tree/nrsc5"
license=('GPL')
depends=('qt6-svg' 'libpulse' 'gnuradio-osmosdr' 'nrsc5')
makedepends=('git' 'cmake' 'boost')
provides=('gqrx')
conflicts=('gqrx')
source=("${pkgname}::git+https://github.com/Albert-S-Briscoe/gqrx.git#branch=nrsc5")
md5sums=('SKIP')

pkgver() {
	cd "$pkgname"
	git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
	cd "$pkgname"
	echo "StartupNotify=false" >> gqrx.desktop
}

build() {
	cd "$pkgname"
	mkdir -p build
	cd build
	cmake -DCMAKE_INSTALL_PREFIX=/usr ..
	make
}

package() {
	cd "$pkgname"
	install -Dm644 "gqrx.desktop" "$pkgdir/usr/share/applications/gqrx.desktop"
	install -Dm644 "resources/icons/gqrx.svg" "$pkgdir/usr/share/pixmaps/gqrx.svg"

	cd build
	install -Dm755 src/gqrx "$pkgdir/usr/bin/gqrx"
}