From 8afb6ffbf97bc59a6b97d110bf88c9357be5ad83 Mon Sep 17 00:00:00 2001 From: Kiyoshi Aman Date: Wed, 16 Oct 2019 17:32:05 -0400 Subject: system/perl-*: modernise --- system/perl-net-ssleay/APKBUILD | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'system/perl-net-ssleay') diff --git a/system/perl-net-ssleay/APKBUILD b/system/perl-net-ssleay/APKBUILD index 593eb4886..0f8520ce4 100644 --- a/system/perl-net-ssleay/APKBUILD +++ b/system/perl-net-ssleay/APKBUILD @@ -1,7 +1,10 @@ # Contributor: Natanael Copa # Maintainer: Adélie Perl Team pkgname=perl-net-ssleay -_realname=Net-SSLeay +_pkgreal=Net-SSLeay +_author=CHRISN +_au=${_author%%"${_author#??}"} +_a=${_author%%"${_author#?}"} pkgver=1.88 pkgrel=0 pkgdesc="Perl extension for using OpenSSL" @@ -12,26 +15,20 @@ depends="perl" makedepends="perl-dev openssl-dev zlib-dev" checkdepends="perl-test-exception perl-test-warn perl-test-nowarnings" subpackages="$pkgname-doc" -source="https://cpan.metacpan.org/authors/id/C/CH/CHRISN/Net-SSLeay-$pkgver.tar.gz" -builddir="$srcdir/$_realname-$pkgver" +source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" build() { - cd "$builddir" PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 make } check() { - cd "$builddir" make test } package() { - cd "$builddir" - make DESTDIR="$pkgdir" install - - # creates file collision among perl modules find "$pkgdir" -name perllocal.pod -delete } -- cgit v1.2.3-70-g09d2