#Maintainer: George Vlahavas pkgname=perl-digest-sha1 pkgver=2.12 pkgrel=1gv arch=i486 source=(http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Digest-SHA1-$pkgver.tar.gz) docs=("readme" "install" "copying" "changelog*" "authors" "news" "todo" "license" "maintainers" "copyright.pod" "changes") slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "perl-digest-sha1 (Perl interface to the SHA-1 algorithm)" "The Digest::SHA1 module allows you to use the NIST SHA-1 message" "digest algorithm from within Perl programs. The algorithm takes as" "input a message of arbitrary length and produces as output a 160-bit" "\"fingerprint\" or \"message digest\" of the input." ) build() { cd $startdir/src/Digest-SHA1-$pkgver perl Makefile.PL || exit 1 make OPTIMIZE="$CFLAGS" || exit 1 make install INSTALLDIRS=vendor DESTDIR=$startdir/pkg || exit 1 # Remove perllocal.pod and .packlist if present in the package ( for i in perllocal.pod .packlist; do find $startdir/pkg -name "$i" -exec rm -rf {} \; done ) || exit 1 }