1 # $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
2 # Maintainer: Marcin Skory <armitage at gfreedom dot org>
3 # Contributor: dale <dale@archlinux.org>
4 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
9 pkgdesc="Asteroids-type game with sound and 3D objects"
10 arch=('i686' 'x86_64')
12 depends=('sdl_net' 'gcc-libs')
13 backup=('var/games/Maelstrom.scores')
14 install=maelstrom.install
15 source=(http://www.libsdl.org/projects/Maelstrom/src/Maelstrom-${pkgver}.tar.gz
16 maelstrom-3.0.6-64bits.patch
17 maelstrom-scores.patch
19 url="http://www.libsdl.org/projects/Maelstrom/index.html"
20 md5sums=('96aa6359538a6bd60b4198a792de578b'
21 '471ef416576d1ba7dabfa12a4825e271'
22 '131dc95ec8d23f510cdec2bb10dbb9b4'
23 '4e9009d8c1b7afd68f54084565135d6c')
24 sha1sums=('2036fb814db2263ca44ebe3397dbed66720249b7'
25 '3156c1607727b2dcf9b946b60db3053f650dddef'
26 'b2c49116069f33fefceb56bebe18ded3f31e8e6a'
27 '8190cc973ea82ba2b629132931b7164e27643205')
30 cd ${startdir}/src/Maelstrom-${pkgver}
31 if [ "${CARCH}" = "x86_64" ]; then
32 patch -Np0 -i ../maelstrom-3.0.6-64bits.patch || return 1
34 patch -Np0 -i ${startdir}/src/maelstrom-scores.patch || return 1
35 sed -i -e 's/games\/\$PACKAGE/share\/\$PACKAGE/g' configure
36 ./configure --prefix=/usr || return 1
38 make -j1 prefix=${startdir}/pkg/usr install || return 1
40 mkdir -p ${startdir}/pkg/usr/share/applications
41 install -m644 ${startdir}/src/Maelstrom.desktop ${startdir}/pkg/usr/share/applications/Maelstrom.desktop || return 1
43 chown root:games ${startdir}/pkg/usr/bin/Maelstrom || return 1
44 chmod 2555 ${startdir}/pkg/usr/bin/Maelstrom || return 1
46 mkdir -p ${startdir}/pkg/var/games
47 mv ${startdir}/pkg/usr/share/Maelstrom/Maelstrom-Scores ${startdir}/pkg/var/games/Maelstrom.scores || return 1
48 chown root:games ${startdir}/pkg/var/games/Maelstrom.scores || return 1
49 chmod 664 ${startdir}/pkg/var/games/Maelstrom.scores || return 1