updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / perl-test-expect / PKGBUILD
blob33d4eb119269446c49aa1eb01034a77664b1afc8
1 # Contributor: Piotr Rogoża <rogoza dot piotr at gmail dot com>
2 # Created: 24/10/2011
3 # vim:set ts=2 sw=2 et ft=sh tw=100:
5 _author=LBROCARD
6 pkgname=perl-test-expect
7 _pkgname=test-Expect
8 _perlmod=Test-Expect
9 pkgver=0.31
10 pkgrel=1
11 pkgdesc='Test::Expect - Automated driving and testing of terminal-based programs'
12 arch=('any')
13 url='http://search.cpan.org/~lbrocard/Test-Expect/'
14 license=('GPL' 'PerlArtistic')
15 depends=(
16   'perl'
17   'perl-expect-simple'
18   'perl-class-accessor-chained')
19 makedepends=()
20 options=(!emptydirs)
21 source=("http://search.cpan.org/CPAN/authors/id/L/LB/$_author/$_perlmod-$pkgver.tar.gz")
22 build(){
23   cd "$srcdir/$_perlmod-$pkgver"
25   # Install module in vendor directories.
26   PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
27   make
29 #check(){
30 #  cd "$srcdir/$_perlmod-$pkgver"
31 #  make test
33 package(){
34   cd "$srcdir/$_perlmod-$pkgver"
35   make install DESTDIR="$pkgdir/"
37   # remove perllocal.pod and .packlist
38   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
40 md5sums=('2d30b1be2e5e390a9aa698858607e428')