diff options
author | Dominik Drobek <dominik.drobek@o2.pl> | 2017-04-14 16:09:34 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-04-14 16:09:34 +0700 |
commit | 1a3deafcffa1fd21b65d78c2cbfd49799d112cf0 (patch) | |
tree | 3ce26fb7359ffec65c9bcee49c84bb6d1e768a52 /games/OpenXcom/OpenXcom.SlackBuild | |
parent | 9cd42f2943150bdc573c4b89e2878b5ca4f09f68 (diff) | |
download | slackbuilds-1a3deafcffa1fd21b65d78c2cbfd49799d112cf0.tar.gz |
games/OpenXcom: Updated for version 20170322_0020.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/OpenXcom/OpenXcom.SlackBuild')
-rw-r--r-- | games/OpenXcom/OpenXcom.SlackBuild | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/games/OpenXcom/OpenXcom.SlackBuild b/games/OpenXcom/OpenXcom.SlackBuild index 972658a805..cf82a25ac1 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 |