milis/talimatname/genel/perl-net-ssleay/talimat

32 lines
753 B
Plaintext
Raw Normal View History

2017-04-10 15:16:03 +02:00
# Description: OpenSSL'yi kullanmak için Perl uzantısı
2016-02-24 01:27:23 +01:00
# URL: http://search.cpan.org/dist/Net-SSLeay
2017-04-10 15:16:03 +02:00
# Packager: milisarge
2017-04-13 19:15:35 +02:00
# Depends on:
2017-04-10 15:16:03 +02:00
2016-02-24 01:27:23 +01:00
_cpanname=Net-SSLeay
name=perl-net-ssleay
version=1.63
release=1
source=(http://www.cpan.org/authors/id/M/MI/MIKEM/${_cpanname}-$version.tar.gz)
build() {
cd ${_cpanname}-$version
sed -i \
-e "/\$opts->{optimize} = '-O2 -g';/d" \
inc/Module/Install/PRIVATE/Net/SSLeay.pm
export OPTIMIZE="$CFLAGS"
export OPENSSL_PREFIX=/usr
PERL_MM_USE_DEFAULT=1 perl Makefile.PL -- INSTALLDIRS=vendor
make
make install DESTDIR=$PKG
install -D -m644 README $PKG/usr/share/licenses/$name/LICENSE
find $PKG \
-name '*.bs' -or \
-name '.packlist' -or \
-name 'perllocal.pod' | xargs rm
}