1 # Contributor: Enrico Morelli <morelli@cerm.unifi.it>
5 pkgdesc="OpenGL-based space-ship shoot-em-up style game"
7 url="http://xhosxe.free.fr/glaxium"
9 depends=("sdl" "sdl_mixer" "libpng" "mesa" "freeglut")
10 source=(http://xhosxe.free.fr/${pkgname}/${pkgname}_${pkgver}.tar.gz \
11 ${pkgname}-${pkgver}-rc.patch \
12 ${pkgname}-${pkgver}-gcc41.patch \
13 ${pkgname}-${pkgver}-build.patch)
15 md5sums=('ea6d6f8b4ebb7c73b74af64d83f45cb7'
16 'ab479510f01767b032042d1d964670cd'
17 '57c59919852db441f8cdd5a0c38a682f'
18 '7a7880d16227c8e1c5a2173e4832b112')
21 cd $startdir/src/${pkgname}_${pkgver}
22 patch -Np0 -i ${startdir}/src/${pkgname}-${pkgver}-rc.patch || return 1
23 patch -Np0 -i ${startdir}/src/${pkgname}-${pkgver}-gcc41.patch || return 1
24 patch -Np0 -i ${startdir}/src/${pkgname}-${pkgver}-build.patch || return 1
25 ./configure --prefix=/usr
27 install -D -m0755 ${startdir}/src/${pkgname}_${pkgver}/glaxium ${startdir}/pkg/usr/bin/glaxium
28 install -d ${startdir}/pkg/usr/share/games/glaxium/
29 cp -r ${startdir}/src/${pkgname}_${pkgver}/textures ${startdir}/pkg/usr/share/games/glaxium/
30 cp -r ${startdir}/src/${pkgname}_${pkgver}/samples ${startdir}/pkg/usr/share/games/glaxium/