diff options
author | Nishant Limbachia <nishant@mnspace.net> | 2011-10-20 06:16:37 -0500 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-10-22 10:17:10 -0200 |
commit | 7b027fb3d40c554c0313f654305ba89ad1c5b222 (patch) | |
tree | b8cd8d8b976dab1d74cd933f4ba94bcb2deae564 /perl/perl-Config-IniFiles/perl-Config-IniFiles.SlackBuild | |
parent | 88d46ddcfd2ea28405c7f45ba2ee89a53b3cb5e4 (diff) |
perl/perl-Config-IniFiles: Updated for version 2.68.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'perl/perl-Config-IniFiles/perl-Config-IniFiles.SlackBuild')
-rw-r--r-- | perl/perl-Config-IniFiles/perl-Config-IniFiles.SlackBuild | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/perl/perl-Config-IniFiles/perl-Config-IniFiles.SlackBuild b/perl/perl-Config-IniFiles/perl-Config-IniFiles.SlackBuild index c6d1868d45480..9b2f7afba07b1 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 <nishant _AT_ mnspace _DOT_ net> # 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 |