2008-03-04 20:55:19 +01:00
|
|
|
# Description: Perl Digest::SHA1
|
2020-06-01 15:45:48 +00:00
|
|
|
# URL: https://metacpan.org/pod/Digest::SHA1
|
2018-02-18 08:09:09 -05:00
|
|
|
# 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 08:12:48 +00:00
|
|
|
version=2.13
|
2018-02-18 08:09:09 -05:00
|
|
|
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() {
|
2018-02-18 08:09:09 -05:00
|
|
|
cd Digest-SHA1-$version
|
2012-12-11 22:51:30 +01:00
|
|
|
|
2018-02-18 08:09:09 -05:00
|
|
|
perl Makefile.PL
|
|
|
|
make OPTIMIZE="$CFLAGS"
|
2012-12-11 22:51:30 +01:00
|
|
|
|
2018-02-18 08:09:09 -05:00
|
|
|
make install DESTDIR=$PKG
|
2012-12-11 22:51:30 +01:00
|
|
|
|
2018-02-18 08:09:09 -05:00
|
|
|
# Remove perlcrap
|
|
|
|
find $PKG -type f \( \
|
|
|
|
-name '.packlist' -or \
|
|
|
|
-name '*.bs' -or \
|
|
|
|
-name 'autosplit.ix' -or \
|
|
|
|
-name 'perllocal.pod' \) -delete
|
2017-04-13 23:48:16 +10:00
|
|
|
|
2018-02-18 08:09:09 -05:00
|
|
|
# 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
|
|
|
}
|