diff options
author | Ryan P.C. McQuen <ryan.q@linux.com> | 2015-04-06 15:31:25 -0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-04-12 10:07:04 +0700 |
commit | 04d847173a2b51cbd5a00f4739a119cd7693fca7 (patch) | |
tree | 58ce397b2de34c9286243291ea4000e26a60b6db /network/ip2location-c/ip2location-c.SlackBuild | |
parent | 9157dfd2fb63b6832fbd8e522576c67a90c463c4 (diff) | |
download | slackbuilds-04d847173a2b51cbd5a00f4739a119cd7693fca7.tar.gz |
network/ip2location-c: Updated for version 7.0.0.
Signed-off-by: Ryan P.C. McQuen <ryan.q@linux.com>
Diffstat (limited to 'network/ip2location-c/ip2location-c.SlackBuild')
-rw-r--r-- | network/ip2location-c/ip2location-c.SlackBuild | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/network/ip2location-c/ip2location-c.SlackBuild b/network/ip2location-c/ip2location-c.SlackBuild index c743af81ab..85d119ce78 100644 --- a/network/ip2location-c/ip2location-c.SlackBuild +++ b/network/ip2location-c/ip2location-c.SlackBuild @@ -1,8 +1,9 @@ #!/bin/sh - # Slackware build script for ip2location-c + +# Ryan P.C. McQuen | Everett, WA | ryan.q@linux.com + # Copyright 2012, 2013 Chris Abela, Malta -# Copyright 2014 Ryan P.C. McQuen, WA, ryan.q@linux.com # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +24,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=ip2location-c # Previously known as C-IP2Location -VERSION=${VERSION:-6.0.2} +VERSION=${VERSION:-7.0.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -40,6 +41,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +DOCS="AUTHORS COPYING Developers_Guide.txt INSTALL LICENSE* NEWS README" + if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" LIBDIRSUFFIX="" @@ -65,9 +68,9 @@ 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 \ + -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 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; autoreconf -vif @@ -81,21 +84,18 @@ CXXFLAGS="$SLKCFLAGS" \ --mandir=/usr/man \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --disable-libtool-lock \ + --disable-static \ --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 \ +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 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -# NEWS is empty, so we do not bother to copy it cp -a \ - AUTHORS COPYING ChangeLog Developers_Guide.txt INSTALL LICENSE.TXT README \ + $DOCS \ $PKG/usr/doc/$PRGNAM-$VERSION chmod 0644 $PKG/usr/doc/$PRGNAM-$VERSION/* cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |