diff options
author | Chris Abela <kristofru@gmail.com> | 2013-06-30 12:38:17 -0300 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2013-07-02 16:06:52 -0500 |
commit | 7072685be064a3a3d3c3b0a41a1bd9d0042f84c5 (patch) | |
tree | a5955b34fbb3412cb82ac8ceeee7e3a0174ee5a2 /network/ip2location-c/ip2location-c.SlackBuild | |
parent | 81268f4406d812b5c9792481b6105ce974bf4c20 (diff) |
network/ip2location-c: Updated for version 6.0.1.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'network/ip2location-c/ip2location-c.SlackBuild')
-rw-r--r-- | network/ip2location-c/ip2location-c.SlackBuild | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/network/ip2location-c/ip2location-c.SlackBuild b/network/ip2location-c/ip2location-c.SlackBuild index 2bd2be1d16566..71249d9c6192d 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 |