updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / pioneer-git / PKGBUILD
blob33086bcc1af2b7d8a0c38687a7b02e5876a5e530
1 # Maintainer: Benjamin Hodgetts (Enverex) <ben@xnode.org>
3 pkgname=pioneer-git
4 pkgver=20110819
5 pkgrel=1
6 pkgdesc="Pioneer is a space adventure game set in the milkyway galaxy at the turn of the 31st century."
7 arch=('i686' 'x86_64')
8 url="http://pioneerspacesim.net/"
9 license=('GPL')
10 provides=('pioneer')
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"
17 _gitname="pioneer"
19 build() {
20         cd "$srcdir"
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."
26         else
27                 git clone $_gitroot $_gitname
28         fi
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"
37         ./bootstrap
38         PIONEER_DATA_DIR="/usr/games/pioneer" ./configure --prefix=/usr
41 package() {
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