summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b188fc02a555a9485eeeefe2526efdb6e67df45c (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
# Maintainer: not_anonymous <nmlibertarian@gmail.com>
# Contributor: Andrey Semisokhin <customs.rnd@gmail.com>
# Original Submission: Bob Finch <w9ya@qrparci.net>

pkgname=gpredict-git
_pkgname=gpredict
pkgver=2.0.r1.g9036811
pkgrel=1
pkgdesc="Gpredict is a real-time satellite tracking and orbit prediction application."
arch=('i686' 'x86_64')
url="http://gpredict.oz9aec.net/"
license=('GPL')
depends=('curl>=7.19' 'goocanvas>=2')
makedepends=('git' 'autoconf' 'automake' 'intltool')
optdepends=('hamlib: rig interfacing/control'
	    'libreoffice: read /usr/share/doc/gpredict/um/gredict-user-manual.odt')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
options=('!emptydirs')
source=("$_pkgname::git+https://github.com/csete/$_pkgname.git#tag=master")

pkgver() {
	cd $_pkgname

	git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd $srcdir/$_pkgname

	./autogen.sh
	./configure --prefix=/usr
	make
}

check() {
	cd $srcdir/$_pkgname

#	make check
#	make -k check
	make -i check
}
	
package()
{
	cd $srcdir/$_pkgname

	make DESTDIR=$pkgdir install

	mkdir -p $pkgdir/usr/share/doc/${_pkgname}/{notes,um}
	install -m644 doc/notes/* $pkgdir/usr/share/doc/${_pkgname}/notes/.
	install -m644 doc/um/* $pkgdir/usr/share/doc/${_pkgname}/um/.

	rm -rf $pkgdir/usr/share/${_pkgname}/COPYING
	sed -i '$ a\X-DCOP-ServiceType=none' $pkgdir/usr/share/applications/${_pkgname}.desktop
	sed -i '$ a\X-KDE-SubstituteUID=false' $pkgdir/usr/share/applications/${_pkgname}.desktop
}
md5sums=('SKIP')