blob: 676bb1b119c4b42c6317f50ad694eca51cacd928 (
plain)
1 # Description: Clone of the old BoulderDash and Rockford game.
2 # URL: http://www.artsoft.org/rocksndiamonds/
3 # Maintainer: Danny Rawlins, monster dot romster at gmail dot com
4 # Packager: James Mills, prologic at shortcircuit dot net dot au
5 # Depends on: sdl_image sdl_mixer sdl_net
6
7 name=rocksndiamonds
8 version=3.3.0.1
9 release=1
10 source=(http://www.artsoft.org/RELEASES/unix/rocksndiamonds/rocksndiamonds-$version.tar.gz)
11
12 build() {
13 cd rocksndiamonds-$version
14
15 sed -i src/Makefile \
16 -e '/^OPTIONS = $(DEBUG) -Wall.*$/d' \
17 -e "/^OPTIONS = -O3 -Wall/s/-O3 -Wall/$CFLAGS -Wall -O3/"
18
19 export BUILD_DIST=1
20 export RO_GAME_DIR='/usr/share/rocksndiamonds'
21 export RW_GAME_DIR='/var/lib/games/rocksndiamonds'
22 make
23
24 install -d \
25 $PKG/usr/share/rocksndiamonds/graphics \
26 $PKG/usr/share/rocksndiamonds/levels \
27 $PKG/usr/share/rocksndiamonds/music \
28 $PKG/usr/share/rocksndiamonds/sounds \
29 $PKG/var/lib/games/rocksndiamonds
30
31 cp -r graphics $PKG/usr/share/rocksndiamonds
32 cp -r levels $PKG/usr/share/rocksndiamonds
33 cp -r music $PKG/usr/share/rocksndiamonds
34 cp -r sounds $PKG/usr/share/rocksndiamonds
35
36 cp -r scores $PKG/var/lib/games/rocksndiamonds
37 install -D -m 0755 rocksndiamonds $PKG/usr/bin/rocksndiamonds
38
39 rm $PKG/usr/share/rocksndiamonds/levels/Tutorials/rnd_tutorial_niko_boehm/README
40
41 unset BUILD_DIST
42 unset RO_GAME_DIR
43 unset RW_GAME_DIR
44 }
|