games/stratagus: Updated for version 2.4.1.

Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
B. Watson 2018-09-15 21:58:06 -04:00 committed by David Spencer
parent 07c0dfd032
commit 8d38bae73b
2 changed files with 15 additions and 14 deletions

View file

@ -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

View file

@ -1,8 +1,8 @@
PRGNAM="stratagus"
VERSION="2.3.0"
HOMEPAGE="http://stratagus.com/"
DOWNLOAD="https://launchpad.net/stratagus/trunk/2.3/+download/stratagus_2.3.0.orig.tar.gz"
MD5SUM="bf64b87f387c8281350e4b54327bc95f"
VERSION="2.4.1"
HOMEPAGE="https://github.com/Wargus/stratagus"
DOWNLOAD="https://github.com/Wargus/stratagus/archive/v2.4.1/stratagus-2.4.1.tar.gz"
MD5SUM="ad8d49e4e19d8de49b5a8241d1b0ab7b"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="tolua++ libmikmod fluidsynth"