summaryrefslogtreecommitdiffstats
path: root/network/ip2location-c/ip2location-c.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/ip2location-c/ip2location-c.SlackBuild')
-rw-r--r--network/ip2location-c/ip2location-c.SlackBuild12
1 files changed, 9 insertions, 3 deletions
diff --git a/network/ip2location-c/ip2location-c.SlackBuild b/network/ip2location-c/ip2location-c.SlackBuild
index 2bd2be1d16..71249d9c61 100644
--- a/network/ip2location-c/ip2location-c.SlackBuild
+++ b/network/ip2location-c/ip2location-c.SlackBuild
@@ -1,7 +1,7 @@
#!/bin/sh
# Slackware build script for ip2location-c
-# Copyright 2012 Chris Abela, Malta
+# Copyright 2012, 2013 Chris Abela, Malta
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,7 +22,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=ip2location-c # Previously known as C-IP2Location
-VERSION=${VERSION:-4.0.2}
+VERSION=${VERSION:-6.0.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -68,6 +68,8 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+autoreconf -vif
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -77,18 +79,22 @@ CXXFLAGS="$SLKCFLAGS" \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
+ --disable-libtool-lock \
--build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
+cp -a libIP2Location/libIP2Location_la-IP2Loc_DBInterface.{lo,o} $PKG/usr/lib${LIBDIRSUFFIX}/
+cp -a libIP2Location/IP2Loc_DBInterface.h $PKG/usr/include/
+
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
# NEWS is empty, so we do not bother to copy it
cp -a \
- AUTHORS COPYING ChangeLog INSTALL IP2LOCATION_PRODUCTS_CATALOG.PDF LICENSE.TXT README \
+ AUTHORS COPYING ChangeLog Developers_Guide.txt INSTALL LICENSE.TXT README \
$PKG/usr/doc/$PRGNAM-$VERSION
chmod 0644 $PKG/usr/doc/$PRGNAM-$VERSION/*
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild