# Maintainer: Rémy Oudompheng # CPAN Name : Business::ISBN # Contributor: Anton Leontiev # Generator : CPANPLUS::Dist::Arch 1.29 pkgname=perl-business-isbn _dist=Business-ISBN pkgver=3.008 pkgrel=1 pkgdesc='Perl package to work with International Standard Book Numbers' arch=('any') url="https://metacpan.org/release/${_dist}" license=('PerlArtistic' 'GPL') depends=('perl' 'perl-business-isbn-data') optdepends=('perl-libwww: for access to the xISBN service') checkdepends=('perl-test-pod') options=(!emptydirs) source=(https://search.cpan.org/CPAN/authors/id/B/BD/BDFOY/${_dist}-${pkgver}.tar.gz) sha256sums=('19c4a1d4d99a0dd7695a90192b13404a0e3eeebedfcbe97a0202e36b238c0e69') build() { cd "${srcdir}/${_dist}-${pkgver}" unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps perl Makefile.PL make } check() { cd "${srcdir}/${_dist}-${pkgver}" unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT export PERL_MM_USE_DEFAULT=1 make test } package() { cd "${srcdir}/${_dist}-${pkgver}" unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT make install INSTALLDIRS=vendor DESTDIR="$pkgdir" }