summaryrefslogtreecommitdiffstats
path: root/games/stratagus/stratagus.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/stratagus/stratagus.SlackBuild')
-rw-r--r--games/stratagus/stratagus.SlackBuild21
1 files changed, 11 insertions, 10 deletions
diff --git a/games/stratagus/stratagus.SlackBuild b/games/stratagus/stratagus.SlackBuild
index 16c7f4ceab..09450f4443 100644
--- a/games/stratagus/stratagus.SlackBuild
+++ b/games/stratagus/stratagus.SlackBuild
@@ -25,8 +25,10 @@
# want to play with it, add -DENABLE_TOUCHSCREEN=ON in the cmake
# command below.
+# 20180915 bkw: updated for v2.4.1
+
PRGNAM=stratagus
-VERSION=${VERSION:-2.3.0}
+VERSION=${VERSION:-2.4.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -62,15 +64,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 {} \+
# -DDOCDIR isn't 100% respected, some of the docs end up in hardcoded
# share/doc/$PRGNAM, so:
@@ -82,6 +81,8 @@ cd build
-DENABLE_DOC=ON \
-DENABLE_DEV=ON \
-DENABLE_STRIP=ON \
+ -DBINDIR=/usr/games \
+ -DGAMEDIR=/usr/games \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
@@ -98,7 +99,7 @@ rm -f $PKG/usr/include/*.nsi
gzip -9 $PKG/usr/man/man6/$PRGNAM.6
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a README COPYING $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README* COPYING $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install