diff options
author | Larry Hajali <larryhaja@gmail.com> | 2014-04-09 21:20:32 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-04-09 21:20:32 +0700 |
commit | d0598dc6ab5bc85b1455d69fc5d5cd81f6aca92a (patch) | |
tree | 51d3af9049c4df96caa6d46441b19700f59290a9 /games/megaglest | |
parent | 6882f2516f5fd70ab704e61c04f42b7945d5c281 (diff) | |
download | slackbuilds-d0598dc6ab5bc85b1455d69fc5d5cd81f6aca92a.tar.gz |
games/megaglest: Updated for version 3.9.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/megaglest')
-rw-r--r-- | games/megaglest/megaglest.SlackBuild | 25 | ||||
-rw-r--r-- | games/megaglest/megaglest.info | 12 |
2 files changed, 18 insertions, 19 deletions
diff --git a/games/megaglest/megaglest.SlackBuild b/games/megaglest/megaglest.SlackBuild index b7c36a3853..4e58f2f3b6 100644 --- a/games/megaglest/megaglest.SlackBuild +++ b/games/megaglest/megaglest.SlackBuild @@ -23,8 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=megaglest -VERSION=${VERSION:-3.9.0.4} -DATAVERSION=${DATAVERSION:-3.9.0} +VERSION=${VERSION:-3.9.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -41,10 +40,6 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -# Directory names don't always follow the $PRGNAM-$VERSION convention. -SRCDIR=$(tar -tf $CWD/$PRGNAM-source-$VERSION.tar.xz | head -1) -DATADIR=$(tar -tf $CWD/$PRGNAM-data-$DATAVERSION.tar.xz | head -1) - if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" LIBDIRSUFFIX="" @@ -64,11 +59,12 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $SRCDIR +rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-source-$VERSION.tar.xz -tar xvf $CWD/$PRGNAM-source-embedded-$DATAVERSION.tar.xz -tar xvf $CWD/$PRGNAM-data-$DATAVERSION.tar.xz -C $SRCDIR -cd $SRCDIR +tar xvf $CWD/$PRGNAM-source-embedded-$VERSION.tar.xz +tar xvf $CWD/$PRGNAM-data-$VERSION.tar.xz -C $PRGNAM-$VERSION +cd $PRGNAM-$VERSION +find . -type l -exec rm -f '{}' \; chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -82,6 +78,9 @@ install -D -m 0755 $CWD/xvfb-run $TMP/$SRCDIR/bin/xvfb-run export PATH="$PATH:$TMP/$SRCDIR/bin" patch -p1 < $CWD/megaglest-3.9.0-help2man.patch +# Fix file location in CMakeLists.txt +sed -i 's|data/glest_game/||' source/glest_game/CMakeLists.txt + mkdir build cd build cmake -G "Unix Makefiles" \ @@ -94,11 +93,11 @@ cd build -DCMAKE_BUILD_TYPE=Release .. make VERBOSE=1 - make -j1 install DESTDIR=$PKG + make install DESTDIR=$PKG cd - # Now install the game data -cd $DATADIR +cd $PRGNAM-$VERSION cmake -G "Unix Makefiles" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release . @@ -113,7 +112,7 @@ find $PKG/usr/man -type f -exec gzip -9 '{}' \; mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - AUTHORS* CHANGELOG.txt COPYRIGHT* gnu_gpl_3.0.txt README{,.compiling-linux}.txt \ + docs/* $PRGNAM-$VERSION/docs/{AUTHORS*,LICENSE*,README.data*,cc*}.txt \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild diff --git a/games/megaglest/megaglest.info b/games/megaglest/megaglest.info index 734cd02f67..708fb2075e 100644 --- a/games/megaglest/megaglest.info +++ b/games/megaglest/megaglest.info @@ -1,12 +1,12 @@ PRGNAM="megaglest" VERSION="3.9.0.4" HOMEPAGE="http://megaglest.org/" -DOWNLOAD="http://downloads.sourceforge.net/megaglest/megaglest-source-3.9.0.4.tar.xz \ - http://downloads.sourceforge.net/megaglest/megaglest-data-3.9.0.tar.xz \ - http://downloads.sourceforge.net/megaglest/megaglest-source-embedded-3.9.0.tar.xz" -MD5SUM="b2957c106250ec0d0e52c41811558afc \ - bf59d83b38e78bbe82325467a6672447 \ - 0ee2ac4e7111b66be3937c5c0721fde1" +DOWNLOAD="https://github.com/MegaGlest/megaglest-source/releases/download/3.9.1/megaglest-source-3.9.1.tar.xz \ + https://github.com/MegaGlest/megaglest-data/releases/download/3.9.1/megaglest-data-3.9.1.tar.xz \ + https://github.com/MegaGlest/megaglest-source/releases/download/3.9.1/megaglest-source-embedded-3.9.1.tar.xz" +MD5SUM="e6f6e210cb663d5c50efc48c40faa70f \ + 42cf888b1a1ef644d9229fe6b9dde4b8 \ + 14bf7c0646f3da0ae0e38b8bedb1c6a1" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="xerces-c OpenAL lua ftgl wxPython" |