summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a550e1b05a6f8c568342d298d19550ec1033c918 (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
# Maintainer: not_anonymous <nmlibertarian@gmail.com>
# Contributor: Vitaliy Berdinskikh ur6lad[at]i.ua
# PKGBUILD based off of yfklog;
# Original Submitter: Bob Finch <w9ya@qrpqrci.net>

pkgname=yfklog-git
pkgver=r112.7e14078
#r112.7e14078
pkgrel=1
_author=dj1yfk
_pkgname=yfklog
pkgdesc="Yet Another Ham Radio Logbook - w/ LoTW & Ncurses based"
arch=('any')
url="http://fkurz.net/ham/yfklog.html"
license=('GPL' 'FDL')
depends=('xfce4-terminal' 'texlive-core' 'cty' 'perl-curses' 'perl-dbd-sqlite' \
         'perl-io-socket-timeout' 'perl-net-telnet' 'perl-libwww' 'hamradio-menus')
optdepends=('hamlib: for rig control'
	    'trustedqsl: for LOTW support'
	    'xplanet: for ploted output'
	    'fldigi: for digital mode interface')
provides=('yfklog')
conflicts=('yfklog')
source=("$_pkgname::git+https://github.com/$_author/$_pkgname#branch=develop"
        $_pkgname.desktop
        $_pkgname.png
        diff.Makefile
        output.fix)

pkgver() {
	cd $srcdir/$_pkgname

	printf "r%s.%s" "$(git rev-list --count HEAD)"\
		 "$(git rev-parse --short HEAD)"
}

prepare () {
	cd $srcdir/$_pkgname

	patch -p0 < ../diff.Makefile
	patch -p0 < ../output.fix

	sed -i s:'yfklog/cty.dat':'cty/cty.dat': yfksubs.pl
}

package() {
	cd $srcdir/$_pkgname

	mkdir -p $pkgdir/usr/share/$_pkgname/docs

	make DESTDIR=$pkgdir/usr install || return 1
	rm $pkgdir/usr/share/$_pkgname/cty.dat

	install -m644 CHANGELOG $pkgdir/usr/share/$_pkgname/docs/

	mkdir -p $pkgdir/usr/share/{pixmaps,applications}

	install -m644 ../*.desktop $pkgdir/usr/share/applications/
	install -m644 ../*.png $pkgdir/usr/share/pixmaps
}
md5sums=('SKIP'
         'd171a1a978e2ad4038de504b8767039d'
         '90b9267746f9b1f1ecd6842e5a308a28'
         '9dd16a491c0c2b0ec0d6cd9b01fde231'
         '9b0b0ed8e0c478d70115af6eb5b5574e')
sha256sums=('SKIP'
            'b86742fd763c22fea547bc4c9c11c9a87c148f5f582a07f5a4025e8258826ae4'
            'e54bf52aa79ac2a90b8a901d9eea37c04b4a5895daee4736dde65110abb7d49d'
            'b1f3da31f7ebd05f23d5cb8499add2ec109de3fcd375da6e7b0c20d7736c2386'
            '92499ca287891aa2da21f486e170f4a2f15dd7eb7c4d9cd9801bfafd682367d5')