aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-22 23:58:29 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-22 23:58:29 +0000
commitc05953cbb10b72df3baaea784c6f4e9fb83e681e (patch)
treec63d38946dede585701c565a4b5dd153daa9d85c
parenteb9e9651956fad7f5100bded84354911a2b27034 (diff)
downloadaports-c05953cbb10b72df3baaea784c6f4e9fb83e681e.tar.gz
aports-c05953cbb10b72df3baaea784c6f4e9fb83e681e.tar.bz2
aports-c05953cbb10b72df3baaea784c6f4e9fb83e681e.tar.xz
community/perl-authen-ntlm: modernize and add check
-rw-r--r--community/perl-authen-ntlm/APKBUILD22
1 files changed, 13 insertions, 9 deletions
diff --git a/community/perl-authen-ntlm/APKBUILD b/community/perl-authen-ntlm/APKBUILD
index dd9a9a83a0..4b52a7bc22 100644
--- a/community/perl-authen-ntlm/APKBUILD
+++ b/community/perl-authen-ntlm/APKBUILD
@@ -3,7 +3,7 @@
pkgname=perl-authen-ntlm
pkgver=1.09
_realname=NTLM-$pkgver
-pkgrel=0
+pkgrel=1
pkgdesc="NTLM authentication for Mail::IMAPClient"
url="http://search.cpan.org/dist/NTLM/"
arch="noarch"
@@ -12,23 +12,27 @@ cpandepends=""
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
+checkdepends="perl-digest-hmac"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/N/NB/NBEBOUT/$_realname.tar.gz"
-_builddir="$srcdir"/$_realname
+builddir="$srcdir/$_realname"
build() {
- cd "$_builddir"
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- make || return 1
+ cd "$builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="da314ee94b14af2a2f39b6f2c0046e73 NTLM-1.09.tar.gz"
-sha256sums="c823e30cda76bc15636e584302c960e2b5eeef9517c2448f7454498893151f85 NTLM-1.09.tar.gz"
sha512sums="faae9a4a39f483a9612e5a7daec15bb8ddd940ccc73e52372dd004a9067336fccc4c490deafb3eaa0cf56c0dfe3a085cb6bba38631a5122c2f2fa6e960845039 NTLM-1.09.tar.gz"