diff options
Diffstat (limited to 'games/freeciv')
-rw-r--r-- | games/freeciv/README | 14 | ||||
-rw-r--r-- | games/freeciv/freeciv.SlackBuild | 30 | ||||
-rw-r--r-- | games/freeciv/freeciv.info | 6 |
3 files changed, 30 insertions, 20 deletions
diff --git a/games/freeciv/README b/games/freeciv/README index f078ba0f1a..808370b684 100644 --- a/games/freeciv/README +++ b/games/freeciv/README @@ -2,11 +2,11 @@ Freeciv is a free turn-based multiplayer strategy game, in which each player becomes the leader of a civilization, fighting to obtain the ultimate goal: To become the greatest civilization. -Players of the Civilization(R) series by Microprose(R) should feel at -home, since one aim of Freeciv is to have optional modes (called rulesets) -with compatible rules. +Players of the Civilization(R) series by Microprose(R) should feel +at home, since one aim of Freeciv is to have optional modes (called +rulesets) with compatible rules. -Freeciv is maintained by an international team of coders and enthusiasts, -and is easily one of the most fun and addictive network games out -there! That also means it has very extensive multilanguage support, -something rare in games. +Freeciv is maintained by an international team of coders and +enthusiasts, and is easily one of the most fun and addictive network +games out there! That also means it has very extensive multilanguage +support, something rare in games. diff --git a/games/freeciv/freeciv.SlackBuild b/games/freeciv/freeciv.SlackBuild index 8f38989cee..30d0c9da5e 100644 --- a/games/freeciv/freeciv.SlackBuild +++ b/games/freeciv/freeciv.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for freeciv # Yth | Pont-en-Royans, France | yth@ythogtha.org @@ -27,11 +27,14 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=freeciv -VERSION=${VERSION:-2.6.1} -SRCVERSION=${SRCVERSION:-2.6.1} +VERSION=${VERSION:-3.1.1} +SRCVERSION=${SRCVERSION:-3.1.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -41,7 +44,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -55,6 +62,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +elif [ "$ARCH" = "aarch64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" LIBDIRSUFFIX="" @@ -66,7 +76,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$SRCVERSION -tar xvf $CWD/$PRGNAM-$SRCVERSION.tar.bz2 +tar xvf $CWD/$PRGNAM-$SRCVERSION.tar.xz cd $PRGNAM-$SRCVERSION chown -R root:root . find -L . \ @@ -83,6 +93,7 @@ CXXFLAGS="$SLKCFLAGS" \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION/ \ --without-ggz-client \ --enable-client=gtk3 \ --enable-static=no \ @@ -99,17 +110,16 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr 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 ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README doc/ \ - $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -rm -rf $PKG/usr/doc/$PRGNAM-$VERSION/man +rm -rf $PKG/usr/doc/$PRGNAM-$VERSION/man $PKG/usr/doc/$PRGNAM-$VERSION/INSTALL* find $PKG/usr/doc/$PRGNAM-$VERSION -name "Makefile*" -type f -exec rm {} \; +rm -f $PKG/usr/lib*/*.la + mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/games/freeciv/freeciv.info b/games/freeciv/freeciv.info index b9fb7a36b6..18fd0b06ba 100644 --- a/games/freeciv/freeciv.info +++ b/games/freeciv/freeciv.info @@ -1,8 +1,8 @@ PRGNAM="freeciv" -VERSION="2.6.1" +VERSION="3.1.1" HOMEPAGE="http://www.freeciv.org" -DOWNLOAD="http://files.freeciv.org/stable/freeciv-2.6.1.tar.bz2" -MD5SUM="25b26ef90346b69dc5caf6a310446a64" +DOWNLOAD="http://files.freeciv.org/stable/freeciv-3.1.1.tar.xz" +MD5SUM="84cc920acf453fafad95ea16fa46a924" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |