summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 79f147904afde83075ef861971804627be0e95cd (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
46
47
48
49
50

# Maintainer: Zehka <aur@zehka.net>
pkgname=guglielmo
pkgver=v0.5
pkgrel=1
epoch=
pkgdesc="Qt based FM / Dab tuner"
arch=("any")
url="https://github.com/marcogrecopriolo/guglielmo"
license=('GPL2')
groups=()
depends=("qwt" "fftw" "libsndfile" "libsamplerate" "faad2" "portaudio" "qt5-multimedia")
makedepends=("make" "cmake" "git")
checkdepends=()
optdepends=(
   'rtl-sdr: Receive radio via RTL-SDR'
)
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("guglielmo::git+https://github.com/marcogrecopriolo/guglielmo.git#tag=$pkgver")
noextract=()
md5sums=("SKIP")
validpgpkeys=()

prepare() {
	mkdir -p $pkgname/build
	cd "$pkgname/build" || exit 1
}

build() {
	cd "$pkgname/build" || exit 1
	sed -i 's/QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core/QT NAMES Qt5 REQUIRED COMPONENTS Core/g' ../CMakeLists.txt
	cmake ..
	make
}

check() {
	return 0
}

package() {
	mkdir -p "$pkgdir/usr/bin/"
	install -Dm644 "$pkgname/etc/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
	cp "$pkgname/build/guglielmo" "$pkgdir/usr/bin"
}