talimat 753 B

1234567891011121314151617181920212223242526272829303132
  1. # Description: OpenSSL'yi kullanmak için Perl uzantısı
  2. # URL: http://search.cpan.org/dist/Net-SSLeay
  3. # Packager: milisarge
  4. # Depends on:
  5. _cpanname=Net-SSLeay
  6. name=perl-net-ssleay
  7. version=1.63
  8. release=1
  9. source=(http://www.cpan.org/authors/id/M/MI/MIKEM/${_cpanname}-$version.tar.gz)
  10. build() {
  11. cd ${_cpanname}-$version
  12. sed -i \
  13. -e "/\$opts->{optimize} = '-O2 -g';/d" \
  14. inc/Module/Install/PRIVATE/Net/SSLeay.pm
  15. export OPTIMIZE="$CFLAGS"
  16. export OPENSSL_PREFIX=/usr
  17. PERL_MM_USE_DEFAULT=1 perl Makefile.PL -- INSTALLDIRS=vendor
  18. make
  19. make install DESTDIR=$PKG
  20. install -D -m644 README $PKG/usr/share/licenses/$name/LICENSE
  21. find $PKG \
  22. -name '*.bs' -or \
  23. -name '.packlist' -or \
  24. -name 'perllocal.pod' | xargs rm
  25. }