aboutsummaryrefslogtreecommitdiff
path: root/games/boswars/boswars.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/boswars/boswars.SlackBuild')
-rw-r--r--games/boswars/boswars.SlackBuild33
1 files changed, 16 insertions, 17 deletions
diff --git a/games/boswars/boswars.SlackBuild b/games/boswars/boswars.SlackBuild
index 3eefb127b13c..41d4897369e9 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