diff options
Diffstat (limited to 'games/OpenXcom/OpenXcom.SlackBuild')
-rw-r--r-- | games/OpenXcom/OpenXcom.SlackBuild | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/games/OpenXcom/OpenXcom.SlackBuild b/games/OpenXcom/OpenXcom.SlackBuild index cc51786ebafec..85e2b8cc3b3bf 100644 --- a/games/OpenXcom/OpenXcom.SlackBuild +++ b/games/OpenXcom/OpenXcom.SlackBuild @@ -2,6 +2,7 @@ # Slackware build script for OpenXcom +# Copyright 2016 Dominik Drobek <dominik.drobek (at) o2.pl> # Copyright 2014-2016 Dimitris Zlatanidis Orestiada, Greece # All rights reserved. # @@ -23,7 +24,8 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=OpenXcom -VERSION=${VERSION:-1.0} +VERSION=${VERSION:-20161023+a340c36} +COMMIT="a340c36bd5020c9182efe6c005702480a2080e7c" BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -59,9 +61,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz -cd $PRGNAM-$VERSION +rm -rf $PRGNAM-$COMMIT +tar xvf $CWD/$PRGNAM-$COMMIT.tar.gz || tar xvf $CWD/$COMMIT.tar.gz +cd $PRGNAM-$COMMIT chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -70,7 +72,8 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; mkdir -p build -cd build +( + cd build cmake \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ @@ -78,7 +81,7 @@ cd build -DCMAKE_BUILD_TYPE=Release .. make make install DESTDIR=$PKG -cd .. +) 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 @@ -93,7 +96,7 @@ mkdir -p $PKG/usr/man/man6 install -D -m0644 $CWD/${PRGNAM,,}.6.gz $PKG/usr/man/man6/${PRGNAM,,}.6.gz mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a CHANGELOG.txt README.txt $PKG/usr/doc/$PRGNAM-$VERSION +cp -a CHANGELOG.txt LICENSE.txt README.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |