libraries/perl-digest-sha1: Updated for version 2.12

This commit is contained in:
LukenShiro 2010-05-13 00:32:42 +02:00 committed by David Somero
parent eee6da2375
commit 61a737946b
2 changed files with 16 additions and 10 deletions

View file

@ -2,7 +2,7 @@
# Slackware build script for perl-digest-sha1
# Copyright 2008 LukenShiro <lukenshiro@ngi.it>
# Copyright 2008-2009 LukenShiro <lukenshiro@ngi.it>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -25,7 +25,7 @@
PRGNAM=perl-digest-sha1
SRC_PRGNAM=Digest-SHA1
VERSION=${VERSION:-2.11}
VERSION=${VERSION:-2.12}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -39,12 +39,15 @@ DOCFILES="fip180-1.* Changes README"
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi
set -e # Exit on most errors
rm -rf $PKG
@ -80,9 +83,10 @@ find $PKG -depth -type d -empty -exec rm -rf {} \;
# strip libraries
( cd $PKG
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null
)
# compress man pages
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;
@ -97,4 +101,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View file

@ -1,8 +1,10 @@
PRGNAM="perl-digest-sha1"
VERSION="2.11"
VERSION="2.12"
HOMEPAGE="http://search.cpan.org/dist/Digest-SHA1/"
DOWNLOAD="http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Digest-SHA1-2.11.tar.gz"
MD5SUM="2449bfe21d6589c96eebf94dae24df6b"
DOWNLOAD="http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Digest-SHA1-2.12.tar.gz"
MD5SUM="eeb0292868801a202bd7ead87b291374"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="LukenShiro"
EMAIL="lukenshiro@ngi.it"
APPROVED="David Somero"
APPROVED="dsomero"