1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=perl-exporter-tiny
6 pkgdesc="an exporter with the features of Sub::Exporter but only core dependencies"
8 license=('PerlArtistic' 'GPL')
11 checkdepends=('perl-test-fatal' 'perl-test-warnings')
12 url='https://search.cpan.org/dist/Exporter-Tiny'
13 source=("https://search.cpan.org/CPAN/authors/id/T/TO/TOBYINK/Exporter-Tiny-$pkgver.tar.gz")
14 sha512sums=('684dc97d854686910928f413bd84df3e2d2b351c2304116d5c567ec74eb7384f4085881f2bdeaf96dcf9ade2a959076ebd2bde3977dd5b876f75daaf6ca9d763')
15 _distdir="Exporter-Tiny-$pkgver"
18 ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
19 PERL_AUTOINSTALL=--skipdeps \
20 PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
21 PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
22 MODULEBUILDRC=/dev/null
24 cd "$srcdir/$_distdir"
25 /usr/bin/perl Makefile.PL
31 cd "$srcdir/$_distdir"
32 ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
38 cd "$srcdir/$_distdir"
41 find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
48 # vim:set ts=2 sw=2 et: