aboutsummaryrefslogtreecommitdiff
path: root/games/freeciv/freeciv.SlackBuild
diff options
context:
space:
mode:
authorRyan P.C. McQuen <ryanpcmcquen@gmail.com>2014-08-03 12:05:16 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-08-03 12:05:16 +0700
commit7ad61436478f0a6c7b1114df1ed92fb972f5f7fa (patch)
tree9ebf804d4d6be87fb0480d43883cad8e1a68ab5e /games/freeciv/freeciv.SlackBuild
parent1c459b1286b06583c624666265ad33075b6edf84 (diff)
games/freeciv: Updated for version 2.4.2 + new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
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 23be2f024f256..93d4f421fe449 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 {} \;