aboutsummaryrefslogtreecommitdiff
path: root/perl/perl-IP-Country/perl-IP-Country.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'perl/perl-IP-Country/perl-IP-Country.SlackBuild')
-rw-r--r--perl/perl-IP-Country/perl-IP-Country.SlackBuild24
1 files changed, 12 insertions, 12 deletions
diff --git a/perl/perl-IP-Country/perl-IP-Country.SlackBuild b/perl/perl-IP-Country/perl-IP-Country.SlackBuild
index 85199935817b0..3a540db8740be 100644
--- a/perl/perl-IP-Country/perl-IP-Country.SlackBuild
+++ b/perl/perl-IP-Country/perl-IP-Country.SlackBuild
@@ -3,13 +3,14 @@
# Slackware Package Build Script for perl modules: IP::Country
# Home Page http://search.cpan.org/dist/IP-Country/
-# Copyright (c) 2008-2010, Nishant Limbachia, Hoffman Estates, IL, USA (nishant__AT__mnspace__DOT__net)
+# Copyright (c) 2008-2013, Nishant Limbachia, Hoffman Estates, IL, USA
+# (nishant _AT_ mnspace _DOT_ net)
# All rights reserved.
-# Redistribution and use of this script, with or without modification, is
+# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
-# 1. Redistributions of script must retain the above copyright notice,
+# 1. Redistributions of script must retain the above copyright notice,
# this list of conditions and the following disclaimer.
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
@@ -26,18 +27,17 @@
#
# Modified by the SlackBuilds.org project.
-SRCNAM=IP-Country
-PRGNAM=perl-IP-Country
-VERSION=2.27
+PRGNAM="perl-IP-Country"
+VERSION=${VERSION:-2.28}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
+SRCNAM="$(printf $PRGNAM | cut -f2- -d-)"
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -79,9 +79,9 @@ find . \
CFLAGS="$SLKCFLAGS" \
perl Makefile.PL \
-PREFIX=/usr INSTALLDIRS=vendor \
-INSTALLVENDORMAN3DIR=/usr/man/man3 \
-INSTALLVENDORMAN1DIR=/usr/man/man1
+ PREFIX=/usr INSTALLDIRS=vendor \
+ INSTALLVENDORMAN3DIR=/usr/man/man3 \
+ INSTALLVENDORMAN1DIR=/usr/man/man1
make
make install DESTDIR=$PKG
@@ -105,7 +105,7 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;
for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
-)
+)
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc