diff options
author | Dimitris Zlatanidis <d.zlatanidis@gmail.com> | 2014-04-24 12:57:31 +0700 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2014-04-27 12:18:16 -0500 |
commit | 1cd2424f3c2af82553061cf88d6b8229cfd23a34 (patch) | |
tree | 18ca4febf123594e3fdf2b991b121e59766ec42f /games | |
parent | b1461059f031a5dae417826066a5fb84f01aef08 (diff) |
games/boswars: Script cleanup.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r-- | games/boswars/boswars.SlackBuild | 33 | ||||
-rw-r--r-- | games/boswars/boswars.desktop | 2 | ||||
-rw-r--r-- | games/boswars/boswars.sh | 3 | ||||
-rw-r--r-- | games/boswars/doinst.sh | 5 |
4 files changed, 20 insertions, 23 deletions
diff --git a/games/boswars/boswars.SlackBuild b/games/boswars/boswars.SlackBuild index 3eefb127b13cc..41d4897369e96 100644 --- a/games/boswars/boswars.SlackBuild +++ b/games/boswars/boswars.SlackBuild @@ -25,7 +25,7 @@ PRGNAM=boswars VERSION=${VERSION:-2.7} SRCVERSION=$(echo $VERSION-src) -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -73,27 +73,26 @@ find -L . \ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -./make.py - -mkdir -p $PKG/usr/share/games/$PRGNAM-$VERSION -cp -rf campaigns $PKG/usr/share/games/$PRGNAM-$VERSION -cp -rf engine $PKG/usr/share/games/$PRGNAM-$VERSION -cp -rf fbuild/release/* $PKG/usr/share/games/$PRGNAM-$VERSION -cp -rf graphics $PKG/usr/share/games/$PRGNAM-$VERSION -cp -rf intro $PKG/usr/share/games/$PRGNAM-$VERSION -cp -rf languages $PKG/usr/share/games/$PRGNAM-$VERSION -cp -rf maps $PKG/usr/share/games/$PRGNAM-$VERSION -cp -rf patches $PKG/usr/share/games/$PRGNAM-$VERSION -cp -rf scripts $PKG/usr/share/games/$PRGNAM-$VERSION -cp -rf sounds $PKG/usr/share/games/$PRGNAM-$VERSION -cp -rf tools $PKG/usr/share/games/$PRGNAM-$VERSION -cp -rf units $PKG/usr/share/games/$PRGNAM-$VERSION +./make.py # build source code + +SRCDIRS="campaigns engine fbuild/release/* graphics intro languages maps \ + patches scripts sounds tools units" + +mkdir -p $PKG/usr/share/games/$PRGNAM $PKG/usr/bin + +# copy data game +for i in $SRCDIRS; do + cp -rf $i $PKG/usr/share/games/$PRGNAM +done + +# install launcher +install -D -m0755 $CWD/$PRGNAM.sh $PKG/usr/bin/$PRGNAM mkdir -p $PKG/usr/share/applications install -D -m644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop mkdir -p $PKG/usr/share/pixmaps/ -install -D -m644 intro/logo_boswars.png $PKG/usr/share/pixmaps/$PRGNAM.svg +install -D -m644 intro/logo_boswars.png $PKG/usr/share/pixmaps/$PRGNAM.png mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a CHANGELOG *.txt doc/* $PKG/usr/doc/$PRGNAM-$VERSION diff --git a/games/boswars/boswars.desktop b/games/boswars/boswars.desktop index dd7c976b2fde9..afbcadccfcd3c 100644 --- a/games/boswars/boswars.desktop +++ b/games/boswars/boswars.desktop @@ -2,7 +2,7 @@ Name=Bos Wars Name[he]= Bos Wars Comment=RTS -Exec=/usr/share/games/boswars-2.7/boswars -d /usr/share/games/boswars-2.7 +Exec=boswars Icon=boswars Terminal=false Type=Application diff --git a/games/boswars/boswars.sh b/games/boswars/boswars.sh new file mode 100644 index 0000000000000..2fb14f83937a1 --- /dev/null +++ b/games/boswars/boswars.sh @@ -0,0 +1,3 @@ +#!/bin/sh +cd /usr/share/games/boswars +./boswars diff --git a/games/boswars/doinst.sh b/games/boswars/doinst.sh index 6d0874997e5cf..5fb28930db0b9 100644 --- a/games/boswars/doinst.sh +++ b/games/boswars/doinst.sh @@ -1,8 +1,3 @@ -if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then - if [ -x /usr/bin/gtk-update-icon-cache ]; then - /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 -fi - if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 fi |