summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 43b65fa287a4013412294a57b455e73d91ad1a41 (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
pkgname=dl-fldigi-git
_gitname="dl-fldigi"
pkgver=DL3.1.r245.g501f869
pkgrel=2
provides=('dl-fldigi')
pkgdesc="Tracking Program for UK HAB Launches by James Coxon"
arch=('i686' 'x86_64')
url="https://github.com/jamescoxon/dl-fldigi"
license=('GPL')
depends=('fltk' 'libsamplerate' 'libpng')
optdepends=('pulseaudio: pulseaudio support'
#'cty: callsign database support'
'xmlrpc-c-abyss: XML-RPC control'
'hamlib: rig control through hamlib'
'portaudio: PortAudio support'
'libsndfile: sound file support')
source=('git+https://github.com/jamescoxon/dl-fldigi.git' 'tests-remove.patch')
md5sums=('SKIP' '52f9d57f01db48e35c2e8a1d28d70fd4')

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

prepare() {
	cd "$_gitname"
	git checkout DL3.1
	git submodule init
	git submodule update
}

build() {
	cd "$_gitname"
	patch -Np1 -i "${srcdir}/tests-remove.patch"
	autoreconf -vfi
	./configure --disable-flarq --enable-optimizations=native --prefix=/usr
	make
}

package() {
	cd "$_gitname"
	make DESTDIR="$pkgdir" install
}