summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7453c7653ddfe0b3fab3c8e759e619b347c5cf22 (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.27

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

build() {
  cd "$srcdir/autodie-2.22"
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd "$srcdir/autodie-2.22"
  make test
}

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