archrelease: copy trunk to community-any
[ArchLinux/community.git] / perl-sub-exporter / trunk / PKGBUILD
blob8310e2137931a4603c53425b9b7b530c85042163
1 # Maintainer: Jonathan Steel <jsteel@aur.archlinux.org>
2 # Contributor: Justin Davis <jrcd83@gmail.com>
4 pkgname=perl-sub-exporter
5 pkgver=0.989
6 pkgrel=1
7 pkgdesc="A sophisticated exporter for custom-built routines"
8 arch=('any')
9 license=('PerlArtistic' 'GPL')
10 options=('!emptydirs')
11 depends=('perl' 'perl-data-optlist' 'perl-params-util' 'perl-sub-install')
12 url="https://metacpan.org/release/Sub-Exporter"
13 source=(https://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Sub-Exporter-$pkgver.tar.gz)
14 sha512sums=('7c491349bc9704604a268b45eed17db30c49f43f3c67f088d132d7f35c20eb1ddec46eca88b1e966fb48cf9580cb7007cc240f6d3ac9ba21cffbc7437b7dccbb')
16 build() {
17   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
18       PERL_AUTOINSTALL="--skipdeps"            \
19       PERL_MM_OPT="INSTALLDIRS=vendor"         \
20       PERL_MB_OPT="--installdirs vendor"       \
21       MODULEBUILDRC=/dev/null
23     cd "$srcdir"/Sub-Exporter-$pkgver
25     /usr/bin/perl Makefile.PL
26     make
27   )
30 check() {
31   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
33     cd "$srcdir"/Sub-Exporter-$pkgver
35     make test
36   )
39 package() {
40   cd "$srcdir"/Sub-Exporter-$pkgver
42   make DESTDIR="$pkgdir"/ install