From 3993c070629f13a1a2e32fc412585a0a02ed677d Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sun, 31 Aug 2014 07:09:11 +0300 Subject: games/cpsokoban: Update script Signed-off-by: Dimitris Zlatanidis Signed-off-by: Willy Sudiarto Raharjo --- games/cpsokoban/cpsokoban.SlackBuild | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'games/cpsokoban') 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 -- cgit v1.2.3