summaryrefslogtreecommitdiff
path: root/games/freeciv/freeciv.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/freeciv/freeciv.SlackBuild')
-rw-r--r--games/freeciv/freeciv.SlackBuild18
1 files changed, 10 insertions, 8 deletions
diff --git a/games/freeciv/freeciv.SlackBuild b/games/freeciv/freeciv.SlackBuild
index 23be2f024f..93d4f421fe 100644
--- a/games/freeciv/freeciv.SlackBuild
+++ b/games/freeciv/freeciv.SlackBuild
@@ -1,6 +1,8 @@
#!/bin/sh
# Slackware build script for freeciv
+# Ryan P.C. McQuen | Everett, WA | ryan.q@linux.com
+
# Original version written by Iskar Enev <iskar.enev[@]gmail.com>
# Copyright 2010-2013 Niels Horn, Rio de Janeiro, RJ, Brazil
@@ -23,10 +25,8 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Revision date: 2013/03/24
-
PRGNAM=freeciv
-VERSION=${VERSION:-2.3.4}
+VERSION=${VERSION:-2.4.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -67,10 +67,10 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
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 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -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" \
@@ -82,12 +82,14 @@ CXXFLAGS="$SLKCFLAGS" \
--mandir=/usr/man \
--without-ggz-client \
--enable-client=gtk \
+ --enable-static=no \
+ --enable-shared=yes \
--build=$ARCH-slackware-linux
make V=1
make install DESTDIR=$PKG
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find $PKG/usr/man -type f -exec gzip -9 {} \;