contrib/p5-digest-sha1/Pkgfile

26 lines
703 B
Plaintext
Raw Normal View History

2008-03-04 20:55:19 +01:00
# Description: Perl Digest::SHA1
# URL: http://search.cpan.org/~gaas/Digest-SHA1-2.11/
2009-05-25 14:34:49 +02:00
# Maintainer: Jose V Beneyto, sepen at crux dot nu
2008-03-04 20:55:19 +01:00
# Packager: Han Boetes, han at mijncomputer dot nl
# Depends on: perl
name=p5-digest-sha1
2009-05-25 14:34:49 +02:00
version=2.12
2008-03-04 20:55:19 +01:00
release=1
source=(http://www.cpan.org/authors/id/G/GA/GAAS/Digest-SHA1-$version.tar.gz)
build() {
cd Digest-SHA1-$version
perl Makefile.PL
make OPTIMIZE="$CFLAGS"
make install DESTDIR=$PKG
# Remove perlcrap
find $PKG -name .packlist -or \
-name '*.bs' -or \
-name autosplit.ix -or \
-name perllocal.pod \
-exec rm -rf {} \;
# Remove empty directories
find $PKG -depth -empty -exec rm -rf {} \;
}