aboutsummaryrefslogtreecommitdiff
path: root/games/OpenXcom
diff options
context:
space:
mode:
authorDominik Drobek <dominik.drobek@o2.pl>2016-11-15 13:33:48 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-11-15 21:41:32 +0700
commitd8019a6fed9c1e1cc7db23818ddd3cf0cbc278cb (patch)
tree320837b67ebc9beca458a6a4acddfcc029d30eb8 /games/OpenXcom
parentdb8ad2f512f87db643c5e10d6e5d4120bc651752 (diff)
games/OpenXcom: Updated for version 20161023+a340c36 + new maint.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games/OpenXcom')
-rw-r--r--games/OpenXcom/OpenXcom.SlackBuild17
-rw-r--r--games/OpenXcom/OpenXcom.info10
2 files changed, 15 insertions, 12 deletions
diff --git a/games/OpenXcom/OpenXcom.SlackBuild b/games/OpenXcom/OpenXcom.SlackBuild
index cc51786ebafe..85e2b8cc3b3b 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
diff --git a/games/OpenXcom/OpenXcom.info b/games/OpenXcom/OpenXcom.info
index 83c2039f7ab3..bcf4fd1b6f74 100644
--- a/games/OpenXcom/OpenXcom.info
+++ b/games/OpenXcom/OpenXcom.info
@@ -1,10 +1,10 @@
PRGNAM="OpenXcom"
-VERSION="1.0"
+VERSION="20161023+a340c36"
HOMEPAGE="http://openxcom.org"
-DOWNLOAD="https://github.com/SupSuper/OpenXcom/archive/v1.0.tar.gz"
-MD5SUM="77bc23331ecf14a87b00dca1c581fc4e"
+DOWNLOAD="https://github.com/SupSuper/OpenXcom/archive/a340c36bd5020c9182efe6c005702480a2080e7c.tar.gz"
+MD5SUM="1690cd81a520281f11a5071a02750412"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="yaml-cpp SDL_gfx"
-MAINTAINER="Dimitris Zlatanidis"
-EMAIL="d.zlatanidis@gmail.com"
+MAINTAINER="Dominik Drobek"
+EMAIL="dominik.drobek@o2.pl"