diff options
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 c743af81abc37..85d119ce78cbd 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 |