diff options
Diffstat (limited to 'main/perl-authen-sasl')
-rw-r--r-- | main/perl-authen-sasl/APKBUILD | 21 |
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 } |