summaryrefslogtreecommitdiff
path: root/games/cpsokoban
diff options
context:
space:
mode:
Diffstat (limited to 'games/cpsokoban')
-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