summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2014-08-31 07:09:11 +0300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-09-06 00:02:54 +0700
commit3993c070629f13a1a2e32fc412585a0a02ed677d (patch)
treefaf5dcb308a5371ca45230e3a560dd589973db52
parented16becd86f3dec0cc8690d69906b1ded52c1250 (diff)
downloadslackbuilds-3993c070629f13a1a2e32fc412585a0a02ed677d.tar.gz
games/cpsokoban: Update script
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--games/cpsokoban/cpsokoban.SlackBuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/games/cpsokoban/cpsokoban.SlackBuild b/games/cpsokoban/cpsokoban.SlackBuild
index 46b06a69af..7d38d78cfb 100644
--- a/games/cpsokoban/cpsokoban.SlackBuild
+++ b/games/cpsokoban/cpsokoban.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=cpsokoban
VERSION=${VERSION:-1.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -87,9 +87,13 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/share/games/$PRGNAM $PKG/usr/bin
+
+sed -e "/helpcmd/ s/konqueror/xdg-open/" -i cps_config.py
+sed -e "/self.helpdir =/ s|= .*|= \"/usr/doc/"$PRGNAM-$VERSION"\"|" -i soko.py
# copy data games
-cp -rf pixmaps $PKG/usr/share/games/$PRGNAM
-cp -rf levelsets $PKG/usr/share/games/$PRGNAM
+for F in pixmaps levelsets COPYING "*.py" "*.ppm"; do
+ cp -rf $F $PKG/usr/share/games/$PRGNAM
+done
# install launchers
install -D -m0755 $PRGNAM $PKG/usr/share/games/$PRGNAM