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/boswars/boswars.SlackBuild | |
parent | b1461059f031a5dae417826066a5fb84f01aef08 (diff) | |
download | slackbuilds-1cd2424f3c2af82553061cf88d6b8229cfd23a34.tar.gz |
games/boswars: Script cleanup.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/boswars/boswars.SlackBuild')
-rw-r--r-- | games/boswars/boswars.SlackBuild | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/games/boswars/boswars.SlackBuild b/games/boswars/boswars.SlackBuild index 3eefb127b1..41d4897369 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 |