archrelease: copy trunk to testing-x86_64
[arch-packages.git] / perl-number-compare / trunk / PKGBUILD
blobfdd1bf2f376b31d84d2e6901f195cfe10f11ce7d
1 # Maintainer: Rémy Oudompheng <remy@archlinux.org>
2 # Contributor: John D Jones III <jnbek1972 -_AT_- g m a i l -_Dot_- com>
3 # Generator  : CPANPLUS::Dist::Arch 1.29
5 pkgname='perl-number-compare'
6 _dist="Number-Compare"
7 pkgver=0.03
8 pkgrel=12
9 pkgdesc="numeric comparisons for human file sizes"
10 arch=('any')
11 license=('PerlArtistic' 'GPL')
12 options=('!emptydirs')
13 depends=('perl')
14 makedepends=()
15 url='https://search.mcpan.org/dist/Number-Compare'
16 source=('https://search.mcpan.org/CPAN/authors/id/R/RC/RCLAMP/Number-Compare-0.03.tar.gz')
17 md5sums=('ded4085a8fc96328742785574ca65208')
18 sha512sums=('fc7efb0177bcb84142619b7d8c0252f4548e547650ddbe9cfafaba97b8ae791c20fbffa6f8b01449b9dd217d9914f94bfeaff57cdfdc2c11e2a1456992bd9893')
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"