diff options
Diffstat (limited to 'libraries/perl-digest-sha1/perl-digest-sha1.SlackBuild')
-rw-r--r-- | libraries/perl-digest-sha1/perl-digest-sha1.SlackBuild | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/libraries/perl-digest-sha1/perl-digest-sha1.SlackBuild b/libraries/perl-digest-sha1/perl-digest-sha1.SlackBuild index b04ef9cb3e310..096b7b8b86359 100644 --- a/libraries/perl-digest-sha1/perl-digest-sha1.SlackBuild +++ b/libraries/perl-digest-sha1/perl-digest-sha1.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for perl-digest-sha1 -# Copyright 2008-2009 LukenShiro <lukenshiro@ngi.it> +# Copyright 2008-2010 LukenShiro <lukenshiro@ngi.it> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,19 +22,17 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - PRGNAM=perl-digest-sha1 -SRC_PRGNAM=Digest-SHA1 -VERSION=${VERSION:-2.12} +VERSION=${VERSION:-2.13} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -# Automatically determine the architecture we're building on: +SRC_PRGNAM=Digest-SHA1 + 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 @@ -75,15 +73,12 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -echo "y" | CFLAGS="$SLKCFLAGS" perl Makefile.PL INSTALLDIRS=vendor +echo "y" | CFLAGS="$SLKCFLAGS" perl Makefile.PL INSTALLDIRS=vendor \ + INSTALLVENDORMAN3DIR=/usr/man/man3 make - make install DESTDIR=$PKG -#Move man-pages to appropriate place -mv $PKG/usr/share/man $PKG/usr/ - # Remove perlocal.pod, .packlist and .bs from $PKG ( for i in perllocal.pod .packlist *.bs; do find $PKG -name "$i" -exec rm -rf {} \; @@ -93,15 +88,11 @@ mv $PKG/usr/share/man $PKG/usr/ # Remove empty directories find $PKG -depth -type d -empty -exec rm -rf {} \; -# strip libraries find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -# compress man pages -( 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 -) +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 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION |