summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-03-28 00:09:48 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-03-28 00:09:48 (GMT)
commit37d5024cdc7235a6a2ca2974863414b89e72fb5a (patch)
tree824617a0589d40fbce9d4caf71a480cc21c55a9e /abs
parent3725c05e6bedd37eb0e78f060de9b5c44d827a2a (diff)
downloadlinhes_pkgbuild-37d5024cdc7235a6a2ca2974863414b89e72fb5a.zip
linhes_pkgbuild-37d5024cdc7235a6a2ca2974863414b89e72fb5a.tar.gz
linhes_pkgbuild-37d5024cdc7235a6a2ca2974863414b89e72fb5a.tar.bz2
perl-net-ssleay: update to 1.85
Diffstat (limited to 'abs')
-rw-r--r--abs/core/perl_modules/perl-net-ssleay/PKGBUILD61
1 files changed, 41 insertions, 20 deletions
diff --git a/abs/core/perl_modules/perl-net-ssleay/PKGBUILD b/abs/core/perl_modules/perl-net-ssleay/PKGBUILD
index 8476265..65da779 100644
--- a/abs/core/perl_modules/perl-net-ssleay/PKGBUILD
+++ b/abs/core/perl_modules/perl-net-ssleay/PKGBUILD
@@ -1,38 +1,59 @@
-# $Id: PKGBUILD 160545 2012-06-02 10:28:03Z bluewind $
-# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Manolis Tzanidakis
pkgname=perl-net-ssleay
_cpanname=Net-SSLeay
-pkgver=1.48
-pkgrel=2
-pkgdesc="Perl extension for using OpenSSL"
-arch=('i686' 'x86_64')
+pkgver=1.85
+pkgrel=1
+pkgdesc='Perl extension for using OpenSSL'
+url='https://search.cpan.org/dist/Net-SSLeay/'
+arch=('x86_64')
license=('custom:BSD')
-url="http://search.cpan.org/dist/${_cpanname}/"
depends=('openssl')
-options=(!emptydirs)
+makedepends=('chrpath')
replaces=('net-ssleay')
provides=('net-ssleay')
-source=("http://www.cpan.org/authors/id/M/MI/MIKEM/${_cpanname}-${pkgver}.tar.gz")
-md5sums=('4e10d9da28f26732e37807820bf72af5')
+options=('!emptydirs')
+source=(https://www.cpan.org/authors/id/M/MI/MIKEM/${_cpanname}-${pkgver}.tar.gz)
+sha512sums=('74e0f2f56b707f1ff845c78c1fa7ce26a71b8f943bb99e994d4e065d1f42259fe4cd1a6a17d333459727534158f9541f116dbc8515122380807d9450b0faa26b')
-build() {
- cd ${srcdir}/${_cpanname}-${pkgver}
+prepare() {
+ cd ${_cpanname}-${pkgver}
+ sed -i \
+ -e "/\$opts->{optimize} = '-O2 -g';/d" \
+ inc/Module/Install/PRIVATE/Net/SSLeay.pm
+}
- # install module in vendor directories.
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL -- INSTALLDIRS=vendor
+build() {
+ cd ${_cpanname}-${pkgver}
+ export OPTIMIZE="${CFLAGS}"
+ export OPENSSL_PREFIX=/usr
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
+check() {
+ cd ${_cpanname}-${pkgver}
+ make test
+}
+
package() {
- cd ${srcdir}/${_cpanname}-${pkgver}
+ cd ${_cpanname}-${pkgver}
- make install DESTDIR=${pkgdir}
+ make install DESTDIR="${pkgdir}"
+ install -Dm 644 README "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
- # remove perllocal.pod and .packlist
- find ${pkgdir} -name perllocal.pod -delete
- find ${pkgdir} -name .packlist -delete
+ # strip rpath
+ find "${pkgdir}" -name '*.so' -exec chrpath -d '{}' \;
- install -D -m644 README "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ # template start; name=perl-binary-module-dependency; version=1;
+ if [[ $(find "${pkgdir}/usr/lib/perl5/" -name "*.so") ]]; then
+ _perlver_min=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]);')
+ _perlver_max=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]+1);')
+ depends+=("perl>=${_perlver_min}" "perl<${_perlver_max}")
+ fi
+ # template end;
}
+
+# vim: ts=2 sw=2 et: