aboutsummaryrefslogtreecommitdiff
path: root/games/cgmadness/cgmadness.SlackBuild
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-02-06 01:07:59 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-02-06 03:36:47 +0700
commit6971fc98eee1794cb4aae4a37f14e29463ce7dc0 (patch)
tree1feeab12c21dd0fcfc62736c76f979a43a25a2cc /games/cgmadness/cgmadness.SlackBuild
parent235aeb87a8be538d5d9d31c6364266cbb8f1005e (diff)
games/cgmadness: Fix build.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/cgmadness/cgmadness.SlackBuild')
-rw-r--r--games/cgmadness/cgmadness.SlackBuild6
1 files changed, 4 insertions, 2 deletions
diff --git a/games/cgmadness/cgmadness.SlackBuild b/games/cgmadness/cgmadness.SlackBuild
index 4a83c41c464b6..757e95de632e9 100644
--- a/games/cgmadness/cgmadness.SlackBuild
+++ b/games/cgmadness/cgmadness.SlackBuild
@@ -1,3 +1,4 @@
+
#!/bin/sh
# Slackware build script for cgmadness
@@ -5,7 +6,7 @@
# Written by Zbigniew Baniewski <Zbigniew [dot] Baniewski [at] gmail [dot] com>
PRGNAM=cgmadness
-VERSION=1.3
+VERSION=${VERSION:-1.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -51,7 +52,8 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-cat $CWD/01-Makefile.patch | patch -p1 || exit 1
+cat $CWD/01-Makefile.patch | patch -p1
+patch -p1 < $CWD/cgmadness.patch
make
mkdir -p $PKG/usr/share/games/cgmadness/data $PKG/usr/share/games/cgmadness/levels \