updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / xastir / PKGBUILD
blobd7c281eac81daa7030c344f669c2374635e31d4b
1 #Maintainer: Gordon JC Pearce <gordon@gjcp.net>
2 pkgname=xastir
3 pkgver=2.0.0
4 pkgrel=1
5 pkgdesc="Full featured APRS Tracking/Information Reporting System"
6 url="http://www.xastir.org/"
7 makedepends=('autoconf' 'automake')
8 depends=('lesstif' 'shapelib' 'curl' 'libax25' 'libxml2' 'libpng' 'gv' 'gdal'\
9   'gpsman' 'gpsmanshp' 'imagemagick')
11 source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
12         http://downloads.sourceforge.net/$pkgname/$pkgname-sounds.tgz
13         $pkgname.desktop
14         $pkgname-festival.desktop
15         $pkgname-speech
16         $pkgname.png
17         Makefile.am.patch
18         )
19 #http://www.swcp.com/~russo/shape_web/sdtsrd2.dbfawk
20 arch=('i686' 'x86_64')
21 license=('GPL' 'LGPL')
23 md5sums=('3e660b8168c9037b06e20b0579af3c80'
24          '4201e7079cb5b2bd8a7c34dccfa3f2bb'
25          'a2b560b97a10c9c132ab0db24435ab3c'
26          '38431e4985b2002a68444be502be3973'
27          'e56e55a1c43038d4488fbdd429a0a755'
28          '0a7269113052d3bd2711b84ff2fda9d6'
29          'cb95459f2fd556e76fbaea2314ed0ff3')
31 build() {
32   cd $startdir/src/$pkgname-$pkgver
33   patch -p0 < $srcdir/Makefile.am.patch
34   ./configure --prefix=/usr
35   
36   
37   sed -i -e s:doc/xastir:xastir/doc: Makefile
38   
39   make || return 1
40   make DESTDIR=$startdir/pkg install
41   
42   cd $startdir/src
43   mkdir -p $startdir/pkg/usr/share/pixmaps
44   mkdir -p $startdir/pkg/usr/share/applications
45   install -m644 *.desktop $startdir/pkg/usr/share/applications/
46   install -m644 *.png $startdir/pkg/usr/share/pixmaps/
47   
48   install -m755 $pkgname-speech $startdir/pkg/usr/bin/
49   
50   rm $startdir/pkg/usr/share/$pkgname/sounds/*
51   install -m644 sounds/* $startdir/pkg/usr/share/$pkgname/sounds/
52   
53   chmod 4755 $startdir/pkg/usr/bin/$pkgname