contrib/p5-digest-sha1/Pkgfile

31 lines
699 B
Plaintext
Raw Normal View History

2008-03-04 20:55:19 +01:00
# Description: Perl Digest::SHA1
2020-06-01 17:45:48 +02:00
# URL: https://metacpan.org/pod/Digest::SHA1
# Maintainer: John Vogel, jvogel4 at stny dot rr dot com
# Depends on: perl
2008-03-04 20:55:19 +01:00
name=p5-digest-sha1
2010-08-18 10:12:48 +02:00
version=2.13
release=3
source=(https://www.cpan.org/modules/by-module/Digest/Digest-SHA1-$version.tar.gz)
2008-03-04 20:55:19 +01:00
build() {
cd Digest-SHA1-$version
perl Makefile.PL
make OPTIMIZE="$CFLAGS"
make install DESTDIR=$PKG
# Remove perlcrap
find $PKG -type f \( \
-name '.packlist' -or \
-name '*.bs' -or \
-name 'autosplit.ix' -or \
-name 'perllocal.pod' \) -delete
# Remove empty directories
find $PKG -depth -empty -exec rm -rf {} \;
# Fix perms
find $PKG -type f -a ! -perm -u+w -exec chmod u+w {} \;
2008-03-04 20:55:19 +01:00
}