updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / adanaxis-gpl / PKGBUILD
blob3fc8d13c5fa47821ff84a2e94fef3db750c58f50
1 # Maintainer: Can Celasun <dcelasun[at]gmail[dot]com>
3 pkgname=adanaxis-gpl
4 pkgver=1.2.5
5 pkgrel=1
6 pkgdesc="A deep space first-person shooter game in four spatial dimensions (GPL version)"
7 arch=('i686' 'x86_64')
8 url="http://libregamewiki.org/Adanaxis"
9 license=('GPL')
10 depends=('gcc' 'libxxf86misc' 'libxxf86vm' 'mesa' 'freeglut' 'pcre' 'expat' 'giflib' 'libtiff' 'sdl' 'sdl_mixer' 'alsa-lib' 'esound' 'smpeg' 'libogg' 'libvorbis')
12 source=(http://ftp.de.debian.org/debian/pool/main/a/adanaxisgpl/adanaxisgpl_1.2.5.dfsg.1.orig.tar.gz
13                 http://ftp.de.debian.org/debian/pool/main/a/adanaxisgpl/adanaxisgpl_1.2.5.dfsg.1-3.debian.tar.gz
14                 adanaxisgpl.desktop
15                 adanaxisgpl.png)
16                 
17 md5sums=('c5a5f4ec9eb0b8e610207c20b7eebca6'
18                       '0e66bdff83fbf44235a18d50669e9ddb'
19                       'd8ef474ae27739bb3a98fa2ff3a12032'
20                       'fcc803277aefeea9a4c06e2aa823afb9')
22 build() {
23 msg "Extracting sources"
24 tar zxvf adanaxisgpl_1.2.5.dfsg.1.orig.tar.gz
25 tar zxvf adanaxisgpl_1.2.5.dfsg.1-3.debian.tar.gz
27 msg "Applying patches" 
28 cd  $srcdir/debian/patches
29 cp * $srcdir/adanaxisgpl-1.2.4.dfsg.1 -R
30 cd $srcdir/adanaxisgpl-1.2.4.dfsg.1
32 patch -Np1 -i 10_try_more_cache_paths.diff || return 1
33 patch -Np1 -i 20_fix_FTBFS_with_gcc-4.3.diff || return 1
34 patch -Np1 -i 30_dont_crash_at_16bpp.diff || return 1
35 patch -Np1 -i 31_fix-ftbfs-with-gcc4.4.diff || return 1
37 # Configure and install
39 ./configure --prefix=/usr --exec-prefix=/usr || return 1
40 make  || return 1
41 make DESTDIR=$pkgdir install || return 1
43 # Install desktop file and icon
44 mkdir -p $pkgdir/usr/share/pixmaps
45 mkdir -p $pkgdir/usr/share/applications
47 cd $srcdir
48 install -m644 adanaxisgpl.png $pkgdir/usr/share/pixmaps
49 install -m644 adanaxisgpl.desktop $pkgdir/usr/share/applications