# Automatically generated by apkbuild-cpan, template 3
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=perl-crypt-hce_sha
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Crypt-HCE_SHA
pkgver=0.75
pkgrel=1
pkgdesc="Perl module for Crypt-HCE_SHA"
url="https://metacpan.org/release/Crypt-HCE_SHA/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/E/EE/EESTABROO/Crypt-HCE_SHA-$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="
bcdc69f8ec8de595d684f15c0b3dcdc8c7954bc45686458e92e09960e099a393e045a2c62f21743af24ef7d02042345d93d778ab219a17dab15e762ac11dbbc8  Crypt-HCE_SHA-0.75.tar.gz
"
