aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Legge <timlegge@gmail.com>2020-04-04 16:57:08 +0000
committerLeo <thinkabit.ukim@gmail.com>2020-04-04 18:08:13 +0000
commit306919e60b6b56d993e32ee84782f68521b935aa (patch)
treea623fca0c88ae09dc263bd7528c610469ac9c41a
parentffeecd8bc0de270ae18c327e60ede6f999da75f7 (diff)
downloadaports-306919e60b6b56d993e32ee84782f68521b935aa.tar.gz
aports-306919e60b6b56d993e32ee84782f68521b935aa.tar.bz2
aports-306919e60b6b56d993e32ee84782f68521b935aa.tar.xz
community/perl-ntlm: rename perl-authen-ntlm and modernize APKBUILD
-rw-r--r--community/perl-ntlm/APKBUILD (renamed from community/perl-authen-ntlm/APKBUILD)24
1 files changed, 14 insertions, 10 deletions
diff --git a/community/perl-authen-ntlm/APKBUILD b/community/perl-ntlm/APKBUILD
index 49f8630797..70a2fda1e4 100644
--- a/community/perl-authen-ntlm/APKBUILD
+++ b/community/perl-ntlm/APKBUILD
@@ -1,27 +1,31 @@
+# Automatically generated by apkbuild-cpan, template 3
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
-pkgname=perl-authen-ntlm
+pkgname=perl-ntlm
+#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
+_pkgreal=NTLM
pkgver=1.09
-_realname=NTLM-$pkgver
-pkgrel=2
-pkgdesc="NTLM authentication for Mail::IMAPClient"
-url="https://metacpan.org/release/NTLM"
+pkgrel=3
+pkgdesc="Perl module for NTLM"
+provides="perl-authen-ntlm"
+replaces="perl-authen-ntlm"
+url="https://metacpan.org/release/NTLM/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
-depends="perl"
+depends="perl perl-digest-hmac"
makedepends="perl-dev"
-checkdepends="perl-digest-hmac"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/N/NB/NBEBOUT/NTLM-$pkgver.tar.gz"
-
-builddir="$srcdir/$_realname"
+builddir="$srcdir/$_pkgreal-$pkgver"
build() {
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
make
}
check() {
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}