[arch-commits] Commit in perl-net-ssleay/trunk (PKGBUILD)

Giovanni Scafora giovanni at nymeria.archlinux.org
Wed Oct 30 17:26:59 UTC 2013


    Date: Wednesday, October 30, 2013 @ 18:26:59
  Author: giovanni
Revision: 198599

upgpkg: perl-net-ssleay 1.55-2

attempt to fix FS37532

Modified:
  perl-net-ssleay/trunk/PKGBUILD

----------+
 PKGBUILD |   18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-10-30 16:56:48 UTC (rev 198598)
+++ PKGBUILD	2013-10-30 17:26:59 UTC (rev 198599)
@@ -5,7 +5,7 @@
 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 @@
 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 @@
   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"
 }




More information about the arch-commits mailing list