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

pkgname=tlf
_author=Tlf
pkgver=1.4.1
pkgrel=3
pkgdesc="Ham Radio networked logging and contest program - CLI"
arch=('i686' 'x86_64')
url="https://tlf.github.io/"
license=('GPL')
depends=('xfce4-terminal' 'hamlib=3.3' 'xmlrpc-c' 'hamradio-menus')
makedepends=('autoconf' 'automake' 'pkg-config')
optdepends=('cwdaemon: transmitting cw'
	    'winkeydaemon: transmitting cw'
	    'cty: country files'
	    'joe: editing qsos'
	    'xplanet: mapped qso display'
	    'sox: audio signal handling'
	    'fldigi: digital modes/modem & gui/display')
provides=('tlf')
conflicts=('tlf-git')
source=("https://github.com/$_author/$pkgname/archive/$pkgname-$pkgver.tar.gz"
	$pkgname.desktop
	$pkgname.png
	$pkgname.1)

build() {
	cd $srcdir/$pkgname-$pkgname-$pkgver

	autoreconf --install
	CFLAGS=-Wno-error ./configure --prefix=/usr --enable-hamlib --enable-fldigi-xmlrpc
  
	make || return 1
}

package() {
	cd $srcdir/$pkgname-$pkgname-$pkgver

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

	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=('90a5525d163b5c1e923ab8be1da244e9'
         'ace42b89f5e7a686e4adc8b457f266f7'
         'f148583e02660cb430f638fd8f71f452'
         'b706428f41d32bd5f4f6f671057638c0')
sha256sums=('a5a4d0492d206fe67d324271c50c48801236a955c36edddc198289330cb17386'
            'babe8eeda21b9d55966ef74fcf7aa2eef50317b94576f271e5d5ff580f9f5327'
            '0ddcde4f0dfa98540d4314660108ed49bfa0bc3d8b87cb46906dfd6f12be2497'
            '766253a6f4b1d7e0526366875a46e220d637665c3c44e551f8d3db4ed88aaf81')