diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-11-26 11:38:20 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-11-27 11:18:21 +0700 |
commit | 1037e8d09625f4e331d3d73159b404c68e3c70ea (patch) | |
tree | e4a412bc72c83605835b6ad2bde916d49fb8f874 /games/wesnoth/wesnoth.SlackBuild | |
parent | 8274caeba62902cd27e3bdaf2e8c09b52b3eaa45 (diff) | |
download | slackbuilds-1037e8d09625f4e331d3d73159b404c68e3c70ea.tar.gz |
games/wesnoth: Updated for version 1.12.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/wesnoth/wesnoth.SlackBuild')
-rw-r--r-- | games/wesnoth/wesnoth.SlackBuild | 57 |
1 files changed, 25 insertions, 32 deletions
diff --git a/games/wesnoth/wesnoth.SlackBuild b/games/wesnoth/wesnoth.SlackBuild index 9c8ab03f75..a6e7c4d180 100644 --- a/games/wesnoth/wesnoth.SlackBuild +++ b/games/wesnoth/wesnoth.SlackBuild @@ -3,7 +3,7 @@ # SlackBuild script for "Battle of Wesnoth". # Copyright 2007-2010 Michiel van Wessem, Manchester, United Kingdom -# Copyright 2010-2013 Willy Sudiarto Raharjo, Jogja, Indonesia (willysr@slackware-id.org) +# Copyright 2010-2014 Willy Sudiarto Raharjo <willysr@slackbuilds.org> # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -26,7 +26,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=wesnoth -VERSION=${VERSION:-1.10.7} +VERSION=${VERSION:-1.12} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -60,56 +60,49 @@ else fi if [ "$SERVER" = "yes" ]; then - BUILDSERVER="\ - -DENABLE_CAMPAIGN_SERVER=yes \ - -DSERVER_UID=229 \ - -DSERVER_GID=229 " + OPT_SERVER="enable-server enable-campaign-server with-server-uid=229 with-server-gid=229" fi set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -rm -rf $TMP/$PRGNAM-$VERSION +rm -rf $TMP/$PRGNAM-$VERSION.0 cd $TMP tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 -cd $PRGNAM-$VERSION +cd $PRGNAM-$VERSION.0 # This patch should be enabled when you used GCC 4.7.0 or above patch -p0 < $CWD/terrain_translation.patch chown -R root:root . find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; - -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ - -# Fix build problem on future GCC 4.8.0 -sed -i 's/-Werror//' CMakeLists.txt - -cmake \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DMANDIR=/usr/man \ - -DENABLE_TOOLS=On \ - $BUILDSERVER \ -. - -make -make install DESTDIR=$PKG + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +scons \ + CXXFLAGS="$SLKCFLAGS" \ + CFLAGS="$SLKCFLAGS" \ + prefix=/usr \ + libdir=/usr/lib${LIBDIRSUFFIX} \ + datadir=/usr/share/wesnoth \ + docdir=/usr/doc/$PRGNAM-$VERSION \ + mandir=/usr/man \ + build=release \ + icondir=/usr/share/icons \ + desktopdir=/usr/share/applications \ + $OPT_SERVER \ + all + +scons install destdir=$PKG 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 COPYING INSTALL RELEASE_NOTES changelog copyright \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a COPYING INSTALL RELEASE_NOTES changelog copyright $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir $PKG/install |