summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0c5ffe59a023efe9f5fe3914f2ab2b6d7034c0bc (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
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
# Maintainer: not_anonymous <nmlibertarian@gmail.com>
# Contributor: Bob Finch <w9ya@qrparci.net>

pkgname=tlf-git
_pkgname=tlf
pkgver=1.2.4.5.r23.g325f223
#.r23.g325f223
pkgrel=1
pkgdesc="a console mode networked logging and contest program for hamradio"
arch=('i686' 'x86_64')
url="https://tlf.github.com/"
license=('GPL')
depends=('hamlib')
makedepends=('autoconf' 'automake' 'pkg-config')
optdepends=('cwdaemon: transmitting cw'
	    'cty: country files'
	    'joe: editing qsos'
	    'xplanet: mapped qso display')
#	    'fldigi: digital modes/modem & gui/display')
#		^^^ this might *require* additions to the ./configure ...
provides=('tlf')
conflicts=('tlf')
source=("$_pkgname::git+https://github.com/Tlf/tlf.git#branch=master"
#https://github.com/Tlf/tlf/archive/$pkgname-$pkgver.tar.gz
#        http://sharon.esrac.ele.tue.nl/pub/linux/ham/tlf/nrau
	diff.ax.curses.panel.h
        $_pkgname.desktop
	$_pkgname.png
        $_pkgname.1)

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

prepare() {
	cd "$srcdir/$_pkgname"

	patch -p0 < ../diff.ax.curses.panel.h
}

build() {
	cd $srcdir/$_pkgname

	autoreconf --install
	./configure --prefix=/usr --enable-hamlib
  
	make || return 1
}

package() {
	cd $srcdir/$_pkgname

	make prefix=$pkgdir/usr datadir=$pkgdir/usr/share install

#	cp ../nrau $pkgdir/usr/share/$pkgname

	mkdir -p $pkgdir/usr/bin
	mv $pkgdir/usr/bin/$_pkgname $pkgdir/usr/bin/$_pkgname.1
	install -D -m 755 ../$_pkgname.1 $pkgdir/usr/bin/$_pkgname

	mkdir -p $pkgdir/usr/share/{applications,pixmaps}
	install -D -m 644 ../$_pkgname.png $pkgdir/usr/share/pixmaps
	install -D -m 644 ../$_pkgname.desktop $pkgdir/usr/share/applications
}
md5sums=('SKIP'
         '9c5d7a5ded56d42403150c91fa5f873b'
         'b83cca73cea288ed139993efceb245b5'
         'f148583e02660cb430f638fd8f71f452'
         'b706428f41d32bd5f4f6f671057638c0')
sha256sums=('SKIP'
            'b5a9f130e1342ba6da068320630eaaa4f5146689bd74b610608a75b7e7170c07'
            'cc7b5bcf825ea342d126a54a778c4f837ea0da4a12101383f99282041eb5d574'
            '0ddcde4f0dfa98540d4314660108ed49bfa0bc3d8b87cb46906dfd6f12be2497'
            '766253a6f4b1d7e0526366875a46e220d637665c3c44e551f8d3db4ed88aaf81')