diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-04-19 20:42:56 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-04-19 20:43:35 +0200 |
commit | 3298e4f0aaa2c76f692dc26b0eefeef5410d44e3 (patch) | |
tree | f0c10cf654885937af47046906fee8979cbbdcd7 /main/perl-net-ssleay/APKBUILD | |
parent | 65ee6c0aeb29cc759d211de7a5be3b7ae5c707ce (diff) | |
download | aports-3298e4f0aaa2c76f692dc26b0eefeef5410d44e3.tar.bz2 aports-3298e4f0aaa2c76f692dc26b0eefeef5410d44e3.tar.xz |
main/perl-net-ssleay: improve abuild and add check()
Diffstat (limited to 'main/perl-net-ssleay/APKBUILD')
-rw-r--r-- | main/perl-net-ssleay/APKBUILD | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/main/perl-net-ssleay/APKBUILD b/main/perl-net-ssleay/APKBUILD index 6901c742e5..34e4632604 100644 --- a/main/perl-net-ssleay/APKBUILD +++ b/main/perl-net-ssleay/APKBUILD @@ -3,28 +3,37 @@ pkgname=perl-net-ssleay _realname=Net-SSLeay pkgver=1.81 -pkgrel=0 +pkgrel=1 pkgdesc="Perl extension for using OpenSSL" url="http://search.cpan.org/dist/Net-SSLeay/" arch="all" license="GPL" depends="perl" makedepends="perl-dev libressl-dev zlib-dev" -install= +checkdepends="perl-test-exception perl-test-warn perl-test-nowarnings" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/M/MI/MIKEM/Net-SSLeay-$pkgver.tar.gz" +builddir="$srcdir/$_realname-$pkgver" build() { - cd "$srcdir/$_realname-$pkgver" + cd "$builddir" PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 - make || return 1 + make +} + +check() { + cd "$builddir" + + make test } package() { - cd "$srcdir/$_realname-$pkgver" + cd "$builddir" + make DESTDIR="$pkgdir" install - # creates file collision among perl modules + + # creates file collision among perl modules find "$pkgdir" -name perllocal.pod -delete } |