contrib/p5-net-ssleay/Pkgfile

29 lines
696 B
Plaintext
Raw Normal View History

2008-03-30 12:23:34 +02:00
# Description: Perl extension for using OpenSSL.
2020-02-01 11:32:52 +01:00
# URL: https://metacpan.org/release/Net-SSLeay
2014-11-10 13:28:07 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
2008-03-30 12:23:34 +02:00
# Depends on: openssl
name=p5-net-ssleay
2022-02-05 16:31:12 +01:00
version=1.92
2020-02-01 11:32:52 +01:00
_realname=Net-SSLeay
_author=CHRISN
2011-07-28 13:20:00 +02:00
release=1
2020-02-01 11:32:52 +01:00
source=(https://cpan.metacpan.org/authors/id/${_author::1}/${_author::2}/$_author/$_realname-$version.tar.gz)
2008-03-30 12:23:34 +02:00
build() {
2020-02-01 11:32:52 +01:00
cd $_realname-$version
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
2008-03-30 12:23:34 +02:00
make OPTIMIZE="$CFLAGS"
make DESTDIR=$PKG install
# Remove perlcrap
find $PKG -type f \( \
2008-03-30 12:23:34 +02:00
-name '.packlist' -or \
-name '*.bs' -or \
-name 'perllocal.pod' \) -delete
# Remove empty directories
find $PKG -depth -empty -delete
}