archrelease: copy trunk to extra-x86_64
[arch-packages.git] / perl-data-compare / repos / extra-any / PKGBUILD
blob8cf7970fa2847919536e7061168e60242641cb9b
1 # Maintainer: Rémy Oudompheng <remy@archlinux.org>
2 # Contributor: John D Jones III AKA jnbek <jnbek1972 -_AT_- g m a i l -_Dot_- com>
3 # Generator  : CPANPLUS::Dist::Arch 1.32
5 pkgname='perl-data-compare'
6 _dist=Data-Compare
7 pkgver=1.25
8 pkgrel=9
9 pkgdesc="compare perl data structures"
10 arch=('any')
11 license=('PerlArtistic' 'GPL')
12 options=('!emptydirs')
13 depends=('perl-file-find-rule>=0.1')
14 checkdepends=('perl-test-pod' 'perl-json' 'perl-clone')
15 makedepends=()
16 url='https://metacpan.org/release/Data-Compare'
17 source=("https://search.cpan.org/CPAN/authors/id/D/DC/DCANTRELL/Data-Compare-${pkgver}.tar.gz")
18 md5sums=('6a397ab5833237f3ca05ed7277b19a7a')
19 sha512sums=('6db1235672030aa1afe52de1de9fac1f8a2af9eed99a3143d6c5b30669908125f584638fe06b8b33208f6d7fb734ccec7381c9411408a3f4fde1998707f748c9')
21 build() {
22     cd "${srcdir}/${_dist}-${pkgver}"
23     unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
24     export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
25     perl Makefile.PL
26     make
29 check() {
30     cd "${srcdir}/${_dist}-${pkgver}"
31     unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
32     export PERL_MM_USE_DEFAULT=1
33     make test
36 package() {
37     cd "${srcdir}/${_dist}-${pkgver}"
38     unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
39     make install INSTALLDIRS=vendor DESTDIR="$pkgdir"