4.10.3-2: add gtktreeviewmodel fixes
[arch-packages.git] / perl-exporter-tiny / trunk / PKGBUILD
blob794369d8c9f55b4577df48e34a6c2b278a02f1f1
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=perl-exporter-tiny
4 pkgver=1.006002
5 pkgrel=1
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 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"
17 build() {
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
26     make
27   )
30 check() {
31   cd "$srcdir/$_distdir"
32   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
33     make test
34   )
37 package() {
38   cd "$srcdir/$_distdir"
39   make install
41   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
44 # Local Variables:
45 # mode: shell-script
46 # sh-basic-offset: 2
47 # End:
48 # vim:set ts=2 sw=2 et: