diff options
Diffstat (limited to 'games/freeciv/freeciv.SlackBuild')
-rw-r--r-- | games/freeciv/freeciv.SlackBuild | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/games/freeciv/freeciv.SlackBuild b/games/freeciv/freeciv.SlackBuild index 2f97665a23..8c76f8b0dc 100644 --- a/games/freeciv/freeciv.SlackBuild +++ b/games/freeciv/freeciv.SlackBuild @@ -1,19 +1,19 @@ #!/bin/sh # Slackware build script for freeciv # Written by Iskar Enev <iskar.enev[@]gmail.com> -# Modified by SlackBuilds.org + +# Maintained as of version 2.2.2 by Niels Horn <niels.horn@gmail.com> +# Revision date: 2010/08/23 PRGNAM=freeciv -VERSION=2.2.0 +VERSION=2.2.2 BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -# Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: *) ARCH=$( uname -m ) ;; esac fi @@ -23,8 +23,6 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -DOCUMENTATION="ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README doc/" - if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" LIBDIRSUFFIX="" @@ -72,19 +70,16 @@ make install DESTDIR=$PKG find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -( cd $PKG/usr/man - find . -type f -exec gzip -9 {} \; - for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done -) +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 $DOCUMENTATION $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 -( cd $PKG/usr/doc/$PRGNAM-$VERSION - rm -rf man - find . -name "Makefile*" -type f -exec rm {} \; -) +rm -rf $PKG/usr/doc/$PRGNAM-$VERSION/man +find $PKG/usr/doc/$PRGNAM-$VERSION -name "Makefile*" -type f -exec rm {} \; mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |