archrelease: copy trunk to community-any
[ArchLinux/community.git] / perl-devel-stacktrace / repos / community-any / PKGBUILD
blob1fddd1bb0c760a5ca5282883418cf47fb637bcbf
1 # Maintainer: Jaroslav Lichtblau <svetlemodry@archlinux.org>
2 # Contributor: Moritz Bunkus <moritz@bunkus.org>
4 pkgname=perl-devel-stacktrace
5 pkgver=2.04
6 pkgrel=2
7 pkgdesc='An object representing a stack trace'
8 arch=('any')
9 url="https://metacpan.org/release/Devel-StackTrace"
10 license=('PerlArtistic' 'GPL')
11 depends=('perl>=5.6')
12 options=('!emptydirs')
13 source=(https://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Devel-StackTrace-$pkgver.tar.gz)
14 sha256sums=('cd3c03ed547d3d42c61fa5814c98296139392e7971c092e09a431f2c9f5d6855')
16 build() {
17   cd "${srcdir}"/Devel-StackTrace-$pkgver
19   export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
20   unset PERL5LIB PERL_MM_OPT
21   perl Makefile.PL
22   make
25 check() {
26   cd "${srcdir}"/Devel-StackTrace-$pkgver
28   export PERL_MM_USE_DEFAULT=1
29   unset PERL5LIB
30   make test
33 package() {
34   cd "${srcdir}"/Devel-StackTrace-$pkgver
36   make install INSTALLDIRS=vendor DESTDIR="${pkgdir}"
38   find "${pkgdir}" -name .packlist -o -name perllocal.pod -delete