summaryrefslogtreecommitdiff
path: root/p5-net-ssleay/Pkgfile
blob: ccc2814537a7f07a5048b4fddaec5112c907d251 (plain)
    1 # Description: Perl extension for using OpenSSL.
    2 # URL: https://metacpan.org/release/Net-SSLeay
    3 # Maintainer: Danny Rawlins, crux at romster dot me
    4 # Depends on: openssl
    5 
    6 name=p5-net-ssleay
    7 version=1.90
    8 _realname=Net-SSLeay
    9 _author=CHRISN
   10 release=1
   11 source=(https://cpan.metacpan.org/authors/id/${_author::1}/${_author::2}/$_author/$_realname-$version.tar.gz)
   12 
   13 build() {
   14 	cd $_realname-$version
   15 
   16 	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
   17 	make OPTIMIZE="$CFLAGS"
   18 	make DESTDIR=$PKG install
   19 
   20 	# Remove perlcrap
   21 	find $PKG -type f \( \
   22 		-name '.packlist' -or \
   23 		-name '*.bs' -or \
   24 		-name 'perllocal.pod' \) -delete
   25 
   26 	# Remove empty directories
   27 	find $PKG -depth -empty -delete
   28 }

Generated by cgit