# Automatically generated by apkbuild-cpan, template 1 # Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=perl-business-isbn _pkgreal=Business-ISBN pkgver=3.004 pkgrel=1 pkgdesc="work with International Standard Book Numbers" url="http://search.cpan.org/dist/Business-ISBN/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" cpandepends="perl-mojolicious perl-business-isbn-data perl-uri" cpanmakedepends="perl-test-pod" depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/B/BD/BDFOY/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" check() { make test } prepare() { default_prepare export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make } package() { make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="0ffdfac05da6852a0acc4399acb9cb5171cbc46b5d7b11ee3544763d57946282c06a29c2fbf4ef678f4c1f76a6df0f5def3be76224e3f842f66669aabf394121 Business-ISBN-3.004.tar.gz"