summaryrefslogtreecommitdiff
path: root/games/freeorion
diff options
context:
space:
mode:
Diffstat (limited to 'games/freeorion')
-rw-r--r--games/freeorion/freeorion.SlackBuild17
-rw-r--r--games/freeorion/freeorion.info8
2 files changed, 14 insertions, 11 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
diff --git a/games/freeorion/freeorion.info b/games/freeorion/freeorion.info
index 38241fa6a9..24f5b613e4 100644
--- a/games/freeorion/freeorion.info
+++ b/games/freeorion/freeorion.info
@@ -1,10 +1,10 @@
PRGNAM="freeorion"
-VERSION="0.4.3"
+VERSION="0.4.5_rc1"
HOMEPAGE="http://www.freeorion.org"
-DOWNLOAD="https://github.com/dslackw/FreeOrion/archive/0.4.3.tar.gz"
-MD5SUM="7dd9fd65951d8f0d9f06779394cec694"
+DOWNLOAD="https://github.com/freeorion/freeorion/archive/v0.4.5-rc1.tar.gz"
+MD5SUM="48fbb2d5827c5a48787b3009b022b6b1"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="OpenAL FreeImage bullet ois ogre"
+REQUIRES="SDL2 OpenAL"
MAINTAINER="Dimitris Zlatanidis"
EMAIL="d.zlatanidis@gmail.com"