blob: 44e5011eb19045c1561bbb3c83e8e0ad6961222b (
plain)
1 # Description: Perl Digest::SHA1
2 # URL: https://search.cpan.org/~gaas/Digest-SHA1/
3 # Maintainer: John Vogel, jvogel4 at stny dot rr dot com
4 # Depends on: perl
5
6 name=p5-digest-sha1
7 version=2.13
8 release=3
9 source=(https://www.cpan.org/modules/by-module/Digest/Digest-SHA1-$version.tar.gz)
10
11 build() {
12 cd Digest-SHA1-$version
13
14 perl Makefile.PL
15 make OPTIMIZE="$CFLAGS"
16
17 make install DESTDIR=$PKG
18
19 # Remove perlcrap
20 find $PKG -type f \( \
21 -name '.packlist' -or \
22 -name '*.bs' -or \
23 -name 'autosplit.ix' -or \
24 -name 'perllocal.pod' \) -delete
25
26 # Remove empty directories
27 find $PKG -depth -empty -exec rm -rf {} \;
28 # Fix perms
29 find $PKG -type f -a ! -perm -u+w -exec chmod u+w {} \;
30 }
|