summaryrefslogtreecommitdiff
path: root/p5-digest-sha1/Pkgfile
blob: 8c703d93de05ffce4f4a017e0a8f7ab0c5162be3 (plain)
    1 # Description: Perl Digest::SHA1
    2 # URL: https://metacpan.org/pod/Digest::SHA1
    3 # Maintainer: Danny Rawlins, crux at romster dot me
    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 }

Generated by cgit