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

32 lines
738 B
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: 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-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler:
2017-04-10 15:16:03 +02:00
2017-10-28 14:10:23 +02:00
_cpanisim=Net-SSLeay
isim=perl-net-ssleay
surum=1.63
devir=1
2016-02-24 01:27:23 +01:00
2017-10-28 14:10:23 +02:00
kaynak=(http://www.cpan.org/authors/id/M/MI/MIKEM/${_cpanname}-$surum.tar.gz)
2016-02-24 01:27:23 +01:00
2017-10-27 23:59:41 +02:00
derle() {
2017-10-28 14:10:23 +02:00
cd ${_cpanname}-$surum
2016-02-24 01:27:23 +01:00
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
2017-10-28 14:10:23 +02:00
install -D -m644 README $PKG/usr/share/licenses/$isim/LICENSE
2016-02-24 01:27:23 +01:00
find $PKG \
-name '*.bs' -or \
-name '.packlist' -or \
-name 'perllocal.pod' | xargs rm
}