From 7b027fb3d40c554c0313f654305ba89ad1c5b222 Mon Sep 17 00:00:00 2001 From: Nishant Limbachia Date: Thu, 20 Oct 2011 06:16:37 -0500 Subject: perl/perl-Config-IniFiles: Updated for version 2.68. Signed-off-by: Erik Hanson --- .../perl-Config-IniFiles.SlackBuild | 28 ++++++++++------------ 1 file changed, 13 insertions(+), 15 deletions(-) (limited to 'perl/perl-Config-IniFiles/perl-Config-IniFiles.SlackBuild') diff --git a/perl/perl-Config-IniFiles/perl-Config-IniFiles.SlackBuild b/perl/perl-Config-IniFiles/perl-Config-IniFiles.SlackBuild index c6d1868d4548..9b2f7afba07b 100644 --- a/perl/perl-Config-IniFiles/perl-Config-IniFiles.SlackBuild +++ b/perl/perl-Config-IniFiles/perl-Config-IniFiles.SlackBuild @@ -5,13 +5,13 @@ # Copyright (c) 2008-2011, Nishant Limbachia, Hoffman Estates, IL, USA # All rights reserved. -# + # 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, # this list of conditions and the following disclaimer. -# + # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR @@ -24,19 +24,16 @@ # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -PRGNAM=perl-Config-IniFiles -VERSION=${VERSION:-2.66} +SRCNAM=Config-IniFiles +PRGNAM=perl-$SRCNAM +VERSION=${VERSION:-2.68} 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 @@ -71,21 +68,22 @@ find . \ -exec chmod 644 {} \; CFLAGS="$SLKCFLAGS" \ -perl Makefile.PL \ - PREFIX=/usr \ - INSTALLDIRS=vendor \ - INSTALLVENDORMAN3DIR=/usr/man/man3 - +perl Makefile.PL INSTALLDIRS=vendor INSTALLVENDORMAN3DIR=/usr/man/man3 make make install DESTDIR=$PKG +### putting essential docs mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +find $PKG -name "perllocal.pod" -o -name ".packlist" -o -name "*.bs" | xargs rm -f + +# find and compress man pages find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $(find $PKG/usr/man -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done -find $PKG -name "perllocal.pod" -o -name ".packlist" -o -name "*.bs" | xargs rm -f +# Remove empty directories find $PKG -depth -type d -empty -exec rm -rf {} \; mkdir -p $PKG/install -- cgit v1.2.3