# Automatically generated by apkbuild-cpan, template 4
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-business-ismn
pkgver=1.204
pkgrel=0
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Business-ISMN
pkgdesc="Work with International Standard Music Numbers"
url="https://metacpan.org/release/Business-ISMN/"
arch="noarch"
license="Artistic-2.0"
depends="perl perl-tie-cycle"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/B/BR/BRIANDFOY/Business-ISMN-$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 \
		NO_PACKLIST=1 \
		NO_PERLLOCAL=1
	make
}

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
c5532ad2948a2806de6f8db53d9c947697e429a8a00cd288e37aeb783571f5b114d222a20f1f388cb5f9e6833762afc71a5e84fcd0b01b74a24f5c4538a6a50f  Business-ISMN-1.204.tar.gz
"
