diff options
Diffstat (limited to 'games/wargus/wargus.SlackBuild')
-rw-r--r-- | games/wargus/wargus.SlackBuild | 19 |
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 |