forked from ports/contrib
27 lines
663 B
Plaintext
27 lines
663 B
Plaintext
# Description: Digest::SHA1
|
|
# URL: http://search.cpan.org/~gaas/Digest-SHA1-2.11/
|
|
# Maintainer: Han Boetes <han@mijncomputer.nl>
|
|
# Depends on: perl
|
|
|
|
|
|
name=p5-digest-sha1
|
|
capsname=Digest-SHA1
|
|
version=2.11
|
|
release=1
|
|
source="http://www.cpan.org/authors/id/G/GA/GAAS/$capsname-$version.tar.gz"
|
|
|
|
build() {
|
|
cd $capsname-$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 | xargs rm
|
|
# Remove empty directories
|
|
find $PKG -depth -empty -exec rm -rf {} \;
|
|
}
|