aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/perl-net-ssleay/APKBUILD21
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
}