1 # Original contributor: Bob Finch <w9ya@qrpqrci.net>
5 pkgdesc="Software solutions for high powered rocketry avionics"
7 url="http://www.altusmetrum.org/AltOS/"
11 depends=('openssl>=1.0.0' 'libusb-beta' 'plplot-svn' 'sdcc' 'nickle'\
12 'flite' 'kernel26>=2.6.33' 'gconf' 'alsa-lib' 'libglade'\
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')
19 _gitroot="git://git.gag.com/fw/altos"
24 msg "Connecting to GIT server...."
26 if [ -d $_gitname ] ; then
27 cd $_gitname && git pull origin
28 msg "The local files are updated."
33 msg "GIT checkout done or server timeout"
34 msg "Starting make..."
36 rm -rf "$srcdir/$_gitname-build"
37 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
38 cd "$srcdir/$_gitname-build"
45 ./configure --prefix=/usr
47 make DESTDIR="$pkgdir/" install
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
55 xsltproc -o telemetrum.html /usr/share/xml/docbook/xsl-stylesheets-1.74.0/html/docbook.xsl\
57 xsltproc -o telemetrum.fo /usr/share/xml/docbook/xsl-stylesheets-1.74.0/fo/docbook.xsl\
59 fop -fo telemetrum.fo -pdf telemetrum.pdf
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/