1 # Maintainer: Benjamin Hodgetts (Enverex) <ben@xnode.org>
6 pkgdesc="Pioneer is a space adventure game set in the milkyway galaxy at the turn of the 31st century."
8 url="http://pioneerspacesim.net/"
11 source=('pioneer.png' 'pioneer.desktop')
12 md5sums=('21a429e763b7be8232027dca21eb995e' '439a24d1e24329d51dc7ddcb5d9e2f06')
13 depends=('alsa-lib' 'libgl' 'libsigc++' 'libvorbis' 'lua' 'sdl' 'sdl_image')
14 makedepends=('autoconf' 'automake' 'freetype2' 'freeglut' 'git' 'glew' 'libtool')
16 _gitroot="git://github.com/pioneerspacesim/pioneer.git"
21 msg "Connecting to GIT repository..."
23 if [ -d $_gitname ] ; then
24 cd $_gitname && git pull origin
25 msg "The local files have been updated."
27 git clone $_gitroot $_gitname
30 msg "GIT checkout complete or server timeout"
31 msg "Starting make..."
33 rm -rf "$srcdir/$_gitname-build"
34 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35 cd "$srcdir/$_gitname-build"
38 PIONEER_DATA_DIR="/usr/games/pioneer" ./configure --prefix=/usr
42 install -Dm644 ${srcdir}/pioneer.desktop ${pkgdir}/usr/share/applications/pioneer.desktop
43 install -Dm644 ${srcdir}/pioneer.png ${pkgdir}/usr/share/pixmaps/pioneer.png
44 cd "$srcdir/$_gitname-build"
45 make DESTDIR="$pkgdir/" install