archrelease: copy trunk to extra-x86_64
[arch-packages.git] / perl-business-isbn / trunk / PKGBUILD
blob7a3dbb25bc8795ee03e77d2d0ee216adc3cf7209
1 # Maintainer: Rémy Oudompheng <remy@archlinux.org>
2 # CPAN Name  : Business::ISBN
3 # Contributor: Anton Leontiev <bunder /at/ t-25.ru>
4 # Generator  : CPANPLUS::Dist::Arch 1.29
6 pkgname=perl-business-isbn
7 _dist=Business-ISBN
8 pkgver=3.004
9 pkgrel=8
10 pkgdesc='Perl package to work with International Standard Book Numbers'
11 arch=('any')
12 url="https://metacpan.org/release/${_dist}"
13 license=('PerlArtistic' 'GPL')
14 depends=('perl' 'perl-business-isbn-data')
15 optdepends=('perl-libwww: for access to the xISBN service')
16 options=(!emptydirs)
17 source=(https://search.cpan.org/CPAN/authors/id/B/BD/BDFOY/${_dist}-${pkgver}.tar.gz)
18 sha256sums=('31754acd57bf0c3d4762003d784bce4a0af6832a725336e219fb2988b6fb831e')
20 build() {
21         cd "${srcdir}/${_dist}-${pkgver}"
22         unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
23         export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
24         perl Makefile.PL
25         make
28 check() {
29         cd "${srcdir}/${_dist}-${pkgver}"
30         unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
31         export PERL_MM_USE_DEFAULT=1
32         make test
35 package() {
36         cd "${srcdir}/${_dist}-${pkgver}"
37         unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
38         make install INSTALLDIRS=vendor DESTDIR="$pkgdir"