archrelease: copy trunk to extra-x86_64
[arch-packages.git] / perl-capture-tiny / repos / extra-any / PKGBUILD
blobabee32c539ecb87efc653c541e706dc4ed16bec0
1 # Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
2 # Contributor: Caleb Cushing <xenoterracide@gmail.com>
4 pkgname=perl-capture-tiny
5 _realname=Capture-Tiny
6 pkgver=0.48
7 pkgrel=6
8 pkgdesc="Capture STDOUT and STDERR from Perl, XS or external programs"
9 arch=(any)
10 license=(PerlArtistic GPL)
11 depends=(perl)
12 url="https://metacpan.org/release/Capture-Tiny"
13 options=('!emptydirs')
14 source=("https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/$_realname-$pkgver.tar.gz")
15 sha256sums=('6c23113e87bad393308c90a207013e505f659274736638d8c79bac9c67cc3e19')
17 build() {
18   cd $_realname-$pkgver
19   PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
20   make
23 check() {
24   cd $_realname-$pkgver
25   unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
26   export PERL_MM_USE_DEFAULT=1
27   make test
30 package() {
31   cd $_realname-$pkgver
32   make DESTDIR="$pkgdir" install
35 # vim:set sw=2 et: