diff options
Diffstat (limited to 'libraries/perl-Config-IniFiles/perl-Config-IniFiles.SlackBuild')
-rw-r--r-- | libraries/perl-Config-IniFiles/perl-Config-IniFiles.SlackBuild | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/libraries/perl-Config-IniFiles/perl-Config-IniFiles.SlackBuild b/libraries/perl-Config-IniFiles/perl-Config-IniFiles.SlackBuild index 51db8c22b7..c6d1868d45 100644 --- a/libraries/perl-Config-IniFiles/perl-Config-IniFiles.SlackBuild +++ b/libraries/perl-Config-IniFiles/perl-Config-IniFiles.SlackBuild @@ -3,7 +3,7 @@ # Slackware Package Build Script for perl modules: Config::IniFiles # Home Page http://search.cpan.org/dist/Config-IniFiles/ -# Copyright (c) 2008-2010, Nishant Limbachia, Hoffman Estates, IL, USA (nishant _AT_ mnspace _DOT_ net) +# Copyright (c) 2008-2011, 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 @@ -25,16 +25,18 @@ # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=perl-Config-IniFiles -VERSION=2.58 +VERSION=${VERSION:-2.66} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} SRCNAM=Config-IniFiles +# Automatically determine the architecture we're building on: 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 @@ -59,7 +61,7 @@ DOCS="Changes README" rm -rf $TMP/$SRCNAM-$VERSION $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +tar xzvf $CWD/$SRCNAM-$VERSION.tar.gz cd $TMP/$SRCNAM-$VERSION chown -R root.root . find . \ @@ -68,7 +70,12 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -perl Makefile.PL PREFIX=/usr INSTALLDIRS=vendor INSTALLVENDORMAN3DIR=/usr/man/man3 +CFLAGS="$SLKCFLAGS" \ +perl Makefile.PL \ + PREFIX=/usr \ + INSTALLDIRS=vendor \ + INSTALLVENDORMAN3DIR=/usr/man/man3 + make make install DESTDIR=$PKG |