aboutsummaryrefslogtreecommitdiff
path: root/games/OpenXcom/OpenXcom.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/OpenXcom/OpenXcom.SlackBuild')
-rw-r--r--games/OpenXcom/OpenXcom.SlackBuild22
1 files changed, 12 insertions, 10 deletions
diff --git a/games/OpenXcom/OpenXcom.SlackBuild b/games/OpenXcom/OpenXcom.SlackBuild
index 972658a8052c..cf82a25ac115 100644
--- a/games/OpenXcom/OpenXcom.SlackBuild
+++ b/games/OpenXcom/OpenXcom.SlackBuild
@@ -2,8 +2,8 @@
# Slackware build script for OpenXcom
-# Copyright 2016 Dominik Drobek <dominik.drobek (at) o2.pl>
# Copyright 2014-2016 Dimitris Zlatanidis Orestiada, Greece
+# Copyright 2016-2017 Dominik Drobek <dominik.drobek (at) o2.pl>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,8 +24,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=OpenXcom
-VERSION=${VERSION:-20161115_2133}
-COMMIT="02a8d1336a8db33bbd64133e81e83450485b5c03"
+VERSION=${VERSION:-20170322_0020}
+COMMIT="3f242f38806d5b8786da2966cf20ffc629d2e47a"
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -62,7 +62,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$COMMIT
-tar xvf $CWD/$PRGNAM-$COMMIT.tar.gz || tar xvf $CWD/$COMMIT.tar.gz
+tar xvf $CWD/$PRGNAM-$COMMIT.tar.gz
cd $PRGNAM-$COMMIT
chown -R root:root .
find -L . \
@@ -78,22 +78,24 @@ mkdir -p build
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
+ -DOPENXCOM_VERSION_STRING=".$(echo $COMMIT | cut -c -7)" \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG
)
-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
-
mkdir -p $PKG/usr/share/applications
install -D -m644 res/linux/${PRGNAM,,}.desktop $PKG/usr/share/applications/${PRGNAM,,}.desktop
-
mkdir -p $PKG/usr/share/pixmaps/
install -D -m644 res/linux/icons/${PRGNAM,,}_48x48.png $PKG/usr/share/pixmaps/${PRGNAM,,}.png
-
mkdir -p $PKG/usr/man/man6
-install -D -m0644 $CWD/${PRGNAM,,}.6.gz $PKG/usr/man/man6/${PRGNAM,,}.6.gz
+install -D -m0644 $CWD/${PRGNAM,,}.6 $PKG/usr/man/man6/${PRGNAM,,}.6
+
+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
+
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a CHANGELOG.txt LICENSE.txt README.md $PKG/usr/doc/$PRGNAM-$VERSION