aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-10 10:38:09 +0000
committerCarlo Landmeter <clandmeter@alpinelinux.org>2017-11-10 11:07:43 +0000
commitd37708d2ba679b13ab31cc92a7187a6e756ebbb6 (patch)
tree3e1353b779e5e14da4ece5b2cbd3a2c96832114a
parentc4ef2df31b0d5f92ad0292d7fc9b50324ccb2a54 (diff)
downloadaports-d37708d2ba679b13ab31cc92a7187a6e756ebbb6.tar.gz
aports-d37708d2ba679b13ab31cc92a7187a6e756ebbb6.tar.bz2
aports-d37708d2ba679b13ab31cc92a7187a6e756ebbb6.tar.xz
main/perl-authen-sasl: fix build, modernize and add check
Addd perl-module-install as a make dependency
-rw-r--r--main/perl-authen-sasl/APKBUILD21
1 files changed, 16 insertions, 5 deletions
diff --git a/main/perl-authen-sasl/APKBUILD b/main/perl-authen-sasl/APKBUILD
index 35e3cba5f9..e4bf16615d 100644
--- a/main/perl-authen-sasl/APKBUILD
+++ b/main/perl-authen-sasl/APKBUILD
@@ -2,23 +2,34 @@
pkgname=perl-authen-sasl
_realname=Authen-SASL
pkgver=2.16
-pkgrel=0
+pkgrel=1
pkgdesc="SASL Authentication framework for perl"
url="http://search.cpan.org/dist/Authen-SASL/"
arch="noarch"
license="GPL PerlArtistic"
depends="perl perl-digest-hmac"
-makedepends="perl-dev"
+makedepends="perl-dev perl-module-install"
install=
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/Authen-SASL-$pkgver.tar.gz"
+builddir="$srcdir/$_realname-$pkgver"
+
build() {
- cd "$srcdir/$_realname-$pkgver"
+ cd "$builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- make || return 1
+check() {
+ cd "$builddir"
+ make test
+}
+
+package() {
+ cd "$builddir"
make DESTDIR="$pkgdir" install
+
# creates file collision among perl modules
find "$pkgdir" -name perllocal.pod -delete
}