]> git.gag.com Git - fw/altos/blob - contrib/arch-linux/PKGBUILD-git.altos
altosui: Remove debug printf from AltosState.java
[fw/altos] / contrib / arch-linux / PKGBUILD-git.altos
1 # Original contributor: Bob Finch <w9ya@qrpqrci.net>
2 pkgname=altos-git
3 pkgver=20100518
4 pkgrel=1
5 pkgdesc="Software solutions for high powered rocketry avionics"
6 arch=('i686' 'x86_64')
7 url="http://www.altusmetrum.org/AltOS/"
8 license=('GPL')
9 provides=('altos')
10 conflicts=('altos')
11 depends=('openssl>=1.0.0' 'libusb-beta' 'plplot-svn' 'sdcc' 'nickle'\
12          'flite' 'kernel26>=2.6.33' 'gconf' 'alsa-lib' 'libglade'\
13          'docbook-xsl' 'fop')
14 makedepends=('git')
15 optdepends=('uucp: cu is included & is a bare boned terminal 2 serial program'
16             'cutemon: gui-based minimal terminal to serial program'
17             'google-earth: useful for viewing the kml files of the flight path')
18
19 _gitroot="git://git.gag.com/fw/altos"
20 _gitname="altos"
21
22 build() {
23   cd "$srcdir"
24   msg "Connecting to GIT server...."
25
26   if [ -d $_gitname ] ; then
27     cd $_gitname && git pull origin
28     msg "The local files are updated."
29   else
30     git clone $_gitroot
31   fi
32
33   msg "GIT checkout done or server timeout"
34   msg "Starting make..."
35
36   rm -rf "$srcdir/$_gitname-build"
37   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
38   cd "$srcdir/$_gitname-build"
39
40   #
41   # BUILD HERE
42   #
43
44   ./autogen.sh
45   ./configure --prefix=/usr
46   make || return 1
47   make DESTDIR="$pkgdir/" install
48   
49   mkdir -p $startdir/pkg/usr/share/pixmaps
50   mkdir -p $startdir/pkg/usr/share/applications
51   install -m644 debian/*.xpm $startdir/pkg/usr/share/pixmaps
52   install -m644 debian/*.desktop $startdir/pkg/usr/share/applications
53   
54   
55   xsltproc -o telemetrum.html /usr/share/xml/docbook/xsl-stylesheets-1.74.0/html/docbook.xsl\
56        doc/telemetrum.xsl
57   xsltproc -o telemetrum.fo /usr/share/xml/docbook/xsl-stylesheets-1.74.0/fo/docbook.xsl\
58        doc/telemetrum.xsl
59   fop -fo telemetrum.fo -pdf telemetrum.pdf
60   
61   mkdir -p $startdir/pkg/usr/share/altos/doc
62   install -m 644 *.html $startdir/pkg/usr/share/altos/doc/
63   install -m 644 *.pdf $startdir/pkg/usr/share/altos/doc/
64