summaryrefslogtreecommitdiff
path: root/rocksndiamonds/Pkgfile
diff options
context:
space:
mode:
authorDanny Rawlins <romster@shortcircuit.net.au>2008-03-17 02:59:56 +1100
committerDanny Rawlins <romster@shortcircuit.net.au>2008-03-17 02:59:56 +1100
commit0d6441ab562b6c86fc997fcd49553a0127bd45fc (patch)
tree7c75518c88de45768346f2e6355eb1ba6ef0ec57 /rocksndiamonds/Pkgfile
parente7829ba35e15568f599a30ff2d52f19e7e7dfa54 (diff)
downloadcontrib-0d6441ab562b6c86fc997fcd49553a0127bd45fc.tar.gz
contrib-0d6441ab562b6c86fc997fcd49553a0127bd45fc.tar.xz
rocksndiamonds: picked up port
Diffstat (limited to 'rocksndiamonds/Pkgfile')
-rw-r--r--rocksndiamonds/Pkgfile58
1 files changed, 33 insertions, 25 deletions
diff --git a/rocksndiamonds/Pkgfile b/rocksndiamonds/Pkgfile
index 8718f048f..06ac86c4c 100644
--- a/rocksndiamonds/Pkgfile
+++ b/rocksndiamonds/Pkgfile
@@ -1,35 +1,43 @@
# Description: Clone of the old BoulderDash and Rockford game.
-# URL: http://www.artsoft.org/rocksndiamonds/
-# Packager: James Mills, prologic at shortcircuit dot net dot au
-# Maintainer: James Mills, prologic at shortcircuit dot net dot au
-#
-# Depends on: sdl_image, sdl_mixer, sdl_net
+# URL: http://www.artsoft.org/rocksndiamonds/
+# Maintainer: Danny Rawlins, romster at shortcircuit dot net dot au
+# Packager: James Mills, prologic at shortcircuit dot net dot au
+# Depends on: sdl_image sdl_mixer sdl_net smpeg
name=rocksndiamonds
-version=3.1.1
-release=2
-source=(http://www.artsoft.org/RELEASES/unix/$name/$name-$version.tar.gz)
+version=3.2.4
+release=1
+source=(http://www.artsoft.org/RELEASES/unix/rocksndiamonds/rocksndiamonds-$version.tar.gz)
-build () {
- cd $name-$version
+build() {
+ cd rocksndiamonds-$version
- export RO_GAME_DIR=/usr/share/$name
- export RW_GAME_DIR=/var/lib/games/$name
- make
+ sed -i src/Makefile \
+ -e '/^OPTIONS = $(DEBUG) -Wall.*$/d' \
+ -e "/^OPTIONS = -O3 -Wall/s/-O3 -Wall/$CFLAGS -Wall -O3/"
- install -d \
- $PKG/usr/share/$name/{graphics, levels, music, sounds} \
- $PKG/var/lib/games/$name
+ export BUILD_DIST=1
+ export RO_GAME_DIR='/usr/share/rocksndiamonds'
+ export RW_GAME_DIR='/var/lib/games/rocksndiamonds'
+ make
- cp -r graphics $PKG/usr/share/$name
- cp -r levels $PKG/usr/share/$name
- cp -r music $PKG/usr/share/$name
- cp -r sounds $PKG/usr/share/$name
+ install -d \
+ $PKG/usr/share/rocksndiamonds/graphics \
+ $PKG/usr/share/rocksndiamonds/levels \
+ $PKG/usr/share/rocksndiamonds/music \
+ $PKG/usr/share/rocksndiamonds/sounds \
+ $PKG/var/lib/games/rocksndiamonds
- cp -r scores $PKG/var/lib/games/$name
- install -D -m755 $name $PKG/usr/bin/$name
- chown -R root:root $PKG
+ cp -r graphics $PKG/usr/share/rocksndiamonds
+ cp -r levels $PKG/usr/share/rocksndiamonds
+ cp -r music $PKG/usr/share/rocksndiamonds
+ cp -r sounds $PKG/usr/share/rocksndiamonds
- unset RO_GAME_DIR
- unset RW_GAME_DIR
+ cp -r scores $PKG/var/lib/games/rocksndiamonds
+ install -D -m 0755 rocksndiamonds $PKG/usr/bin/rocksndiamonds
+
+ unset BUILD_DIST
+ unset RO_GAME_DIR
+ unset RW_GAME_DIR
}
+

Generated by cgit