updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / glaxium / PKGBUILD
blobbd37e50425ef532292352548d5ee40638afa1aee
1 # Contributor: Enrico Morelli <morelli@cerm.unifi.it>
2 pkgname=glaxium
3 pkgver=0.5
4 pkgrel=2
5 pkgdesc="OpenGL-based space-ship shoot-em-up style game"
6 arch=(i686)
7 url="http://xhosxe.free.fr/glaxium"
8 license=('GPL')
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')
20 build() {
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
26   make || return 1
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/