summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 18d1780ba249fa3ea1dfcb885f8a3570aa4bfd89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# CPAN Name  : autodie
# Contributor: Anton Leontiev <bunder /at/ t-25.ru>
# Generator  : CPANPLUS::Dist::Arch 1.30

pkgname=perl-autodie
pkgver=2.29
pkgrel=1
pkgdesc='Replace functions with ones that succeed or die with lexical scope'
arch=('any')
url='https://metacpan.org/release/autodie'
license=('PerlArtistic' 'GPL')
depends=('perl>=5.8.8')
source=(http://search.cpan.org/CPAN/authors/id/P/PJ/PJF/autodie-2.29.tar.gz)
options=(!emptydirs)
md5sums=('2739e6599a2aa47601fe91b2a27b29d9')

build() {
	cd autodie-2.29
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	cd autodie-2.29
	make test
}

package() {
	cd autodie-2.29
	make install DESTDIR="$pkgdir"
	find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}