summaryrefslogtreecommitdiff
path: root/games/wargus/wargus.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2018-09-15 22:19:16 -0400
committerDavid Spencer <idlemoor@slackbuilds.org>2018-09-21 23:51:08 +0100
commite6aed5b313305aac8164a0c7ec3fe96b04439e9a (patch)
tree1780ee141641ad0e329451c8a17c28536e90047a /games/wargus/wargus.SlackBuild
parent8d38bae73b6959d1618b9ed1db6f5c50f84df62d (diff)
downloadslackbuilds-e6aed5b313305aac8164a0c7ec3fe96b04439e9a.tar.gz
games/wargus: Updated for version 2.4.1.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'games/wargus/wargus.SlackBuild')
-rw-r--r--games/wargus/wargus.SlackBuild19
1 files changed, 9 insertions, 10 deletions
diff --git a/games/wargus/wargus.SlackBuild b/games/wargus/wargus.SlackBuild
index 611c8c5119..aa2cfa94bf 100644
--- a/games/wargus/wargus.SlackBuild
+++ b/games/wargus/wargus.SlackBuild
@@ -6,8 +6,10 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20180915 bkw: updated for v2.4.1
+
PRGNAM=wargus
-VERSION=${VERSION:-2.3.0}
+VERSION=${VERSION:-2.4.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -43,15 +45,12 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf ${PRGNAM}_${VERSION}.orig
-tar xvf $CWD/${PRGNAM}_${VERSION}.orig.tar.gz
-cd ${PRGNAM}_${VERSION}.orig
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
# 20150511 bkw: upstream hardcodes a particular soundfont but
# doesn't ship it. We'll use the one from fluid-soundfont.
@@ -93,7 +92,7 @@ fi
install -m0755 -oroot -groot $CWD/extract-warcraft2 $PKG/usr/bin
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp $CWD/README_Slackware.txt COPYING* README doc/changelog doc/*txt \
+cp $CWD/README_SBo.txt COPYING* README* doc/changelog doc/*txt \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild