diff options
author | Dimitris Zlatanidis <d.zlatanidis@gmail.com> | 2015-08-25 02:05:10 +0300 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-08-29 10:07:27 +0700 |
commit | 1c9c28e2ad499f49c4994d12d7eea3634403ee80 (patch) | |
tree | 20aa73887eef22734428764bd6381a92120d63e6 /games/freeorion/freeorion.SlackBuild | |
parent | fca91b5529301283cc7aadb0d501743ea23307b6 (diff) | |
download | slackbuilds-1c9c28e2ad499f49c4994d12d7eea3634403ee80.tar.gz |
games/freeorion: Updated for version 0.4.5_rc1.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
Diffstat (limited to 'games/freeorion/freeorion.SlackBuild')
-rw-r--r-- | games/freeorion/freeorion.SlackBuild | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/games/freeorion/freeorion.SlackBuild b/games/freeorion/freeorion.SlackBuild index 4de14e5337..aa166d86c2 100644 --- a/games/freeorion/freeorion.SlackBuild +++ b/games/freeorion/freeorion.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for freeorion -# Copyright 2014 Dimitris Zlatanidis Greece-Orestiada +# Copyright 2014-2015 Dimitris Zlatanidis Orestiada, Greece # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,8 +23,8 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=freeorion -SRCNAM=FreeOrion -VERSION=${VERSION:-0.4.3} +SRCVER=${SRCVER:-0.4.5-rc1} +VERSION=$(echo $SRCVER | tr - _) BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -60,9 +60,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $SRCNAM-$VERSION -tar xvf $CWD/$SRCNAM-$VERSION.tar.gz || tar xvf $CWD/$VERSION.tar.gz -cd $SRCNAM-$VERSION +rm -rf $PRGNAM-$SRCVER +tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz || tar xvf $CWD/v$SRCVER.tar.gz +cd $PRGNAM-$SRCVER chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -70,6 +70,9 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# Fix cmake target for version file +mv util/Version.cpp.in util/Version.cpp + mkdir -p build cd build cmake \ @@ -86,7 +89,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a changelog.txt $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README.md changelog.txt $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |