OCaml 4.14.0 rebuild
[arch-packages.git] / perl-exporter-tiny / trunk / PKGBUILD
blob3233d9988b97a35322b4cb3927a75d9e5533098f
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=perl-exporter-tiny
4 pkgver=1.002002
5 pkgrel=4
6 pkgdesc="an exporter with the features of Sub::Exporter but only core dependencies"
7 arch=('any')
8 license=('PerlArtistic' 'GPL')
9 options=('!emptydirs')
10 depends=('perl')
11 url='https://search.cpan.org/dist/Exporter-Tiny'
12 source=("https://search.cpan.org/CPAN/authors/id/T/TO/TOBYINK/Exporter-Tiny-$pkgver.tar.gz")
13 sha512sums=('b6d39ba1824f6c9d68cf75e7f28fd896c2c475e419f0b1aadec58d4e7e5c8d3fd7bf85d841758772055470de56ad7a3ad6787cfd9d6c5d61d8449cf8f40bda8d')
14 _distdir="Exporter-Tiny-$pkgver"
16 build() {
17   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
18       PERL_AUTOINSTALL=--skipdeps                            \
19       PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
20       PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
21       MODULEBUILDRC=/dev/null
23     cd "$srcdir/$_distdir"
24     /usr/bin/perl Makefile.PL
25     make
26   )
29 check() {
30   cd "$srcdir/$_distdir"
31   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
32     make test
33   )
36 package() {
37   cd "$srcdir/$_distdir"
38   make install
40   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
43 # Local Variables:
44 # mode: shell-script
45 # sh-basic-offset: 2
46 # End:
47 # vim:set ts=2 sw=2 et: