1 # Contributor: dale <dale@archlinux.org>
2 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
7 pkgdesc="Space Rocks is a game - Dodge the space rocks, use your shields, fire your thrusters, cross your fingers, and kiss your ship goodbye"
9 url="http://spacerocks.sourceforge.net/"
11 depends=('sdl' 'sdl_mixer' 'sdl_image')
12 install=rockdodger.install
13 source=(http://downloads.sourceforge.net/spacerocks/${pkgname}-${pkgver}.tar.gz rockdodger-0.6.0a-gcc41.patch)
14 md5sums=('a82a564a6530e60e7f041f7d95c4cae8' 'c8b17a6ffaa12f1a116170437b4629c0')
17 cd ${srcdir}/${pkgname}-${pkgver}
18 patch -Np0 -i ../rockdodger-0.6.0a-gcc41.patch || return 1
19 sed -i 's|/usr/share/rockdodger/.highscore|/var/games/rockdodger.highscore|' main.c || return 1
20 sed -i "s|\./data|/usr/share/rockdodger/data|" main.c || return 1
21 sed -i -e "s:-g:${CFLAGS}:" Makefile || return 1
24 install -D -m755 rockdodger ${pkgdir}/usr/bin/rockdodger
25 install -d ${pkgdir}/usr/share/rockdodger/data
26 install -m644 data/*.{bmp,png,wav,mod} ${pkgdir}/usr/share/rockdodger/data
28 chown root:games ${pkgdir}/usr/bin/rockdodger
29 chmod 2755 ${pkgdir}/usr/bin/rockdodger
30 install -d ${pkgdir}/var/games
31 chown root:games ${pkgdir}/var/games
32 chmod 775 ${pkgdir}/var/games