# 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-ntlm
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=NTLM
pkgver=1.09
pkgrel=6
pkgdesc="Perl module for NTLM"
provides="perl-authen-ntlm=$pkgver-r$pkgrel"
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 perl-digest-hmac"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/N/NB/NBEBOUT/NTLM-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	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
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="
faae9a4a39f483a9612e5a7daec15bb8ddd940ccc73e52372dd004a9067336fccc4c490deafb3eaa0cf56c0dfe3a085cb6bba38631a5122c2f2fa6e960845039  NTLM-1.09.tar.gz
"
