summaryrefslogtreecommitdiff
path: root/extra/perl-net-ssleay/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-10-31 01:12:24 -0700
committerroot <root@rshg054.dnsready.net>2013-10-31 01:12:24 -0700
commitb2a6f1b28b7fa31088cab9a90b0f5ab97948534d (patch)
treeafa7b467e44b704b69c66862852a8c3118b8e308 /extra/perl-net-ssleay/PKGBUILD
parent7c151ac5589d3dbef5972f69a62b847ecf565bfa (diff)
Thu Oct 31 01:09:50 PDT 2013
Diffstat (limited to 'extra/perl-net-ssleay/PKGBUILD')
-rw-r--r--extra/perl-net-ssleay/PKGBUILD20
1 files changed, 13 insertions, 7 deletions
diff --git a/extra/perl-net-ssleay/PKGBUILD b/extra/perl-net-ssleay/PKGBUILD
index 722116ab7..00938d9d0 100644
--- a/extra/perl-net-ssleay/PKGBUILD
+++ b/extra/perl-net-ssleay/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 188575 2013-06-15 17:19:47Z giovanni $
+# $Id: PKGBUILD 198600 2013-10-30 17:27:07Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Manolis Tzanidakis
pkgname=perl-net-ssleay
_cpanname=Net-SSLeay
pkgver=1.55
-pkgrel=1
+pkgrel=2
pkgdesc="Perl extension for using OpenSSL"
arch=('i686' 'x86_64')
license=('custom:BSD')
@@ -17,9 +17,20 @@ provides=('net-ssleay')
source=("http://www.cpan.org/authors/id/M/MI/MIKEM/${_cpanname}-${pkgver}.tar.gz")
md5sums=('473b8d66ca69d5784bb0e428721f58e0')
+prepare() {
+ cd ${srcdir}/${_cpanname}-${pkgver}
+
+ sed -i \
+ -e "/\$opts->{optimize} = '-O2 -g';/d" \
+ inc/Module/Install/PRIVATE/Net/SSLeay.pm
+}
+
build() {
cd ${srcdir}/${_cpanname}-${pkgver}
+ export OPTIMIZE="$CFLAGS"
+ export OPENSSL_PREFIX=/usr
+
# install module in vendor directories.
PERL_MM_USE_DEFAULT=1 perl Makefile.PL -- INSTALLDIRS=vendor
make
@@ -29,10 +40,5 @@ package() {
cd ${srcdir}/${_cpanname}-${pkgver}
make install DESTDIR=${pkgdir}
-
- # remove perllocal.pod and .packlist
- find ${pkgdir} -name perllocal.pod -delete
- find ${pkgdir} -name .packlist -delete
-
install -D -m644 README "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}