updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / perl-perl6-form / PKGBUILD
blob1e7edc207adc9286d313a111947e67c29f184a97
1 # vim:set ts=2 sw=2 et ft=sh tw=100: expandtab
2 # Contributor: Piotr Rogoża <rogoza dot piotr at gmail dot com>
3 # Created: 29/11/2011
5 _author=D/DC/DCONWAY
6 _perlmod=Perl6-Form
7 pkgname='perl-perl6-form'
8 pkgver='0.04'
9 pkgrel='1'
10 pkgdesc="Implements the Perl 6 'form' built-in"
11 arch=('any')
12 url='http://search.cpan.org/~dconway/Perl6-Form'
13 license=('GPL' 'PerlArtistic')
14 groups=('perl6')
15 depends=('perl-perl6-export')
16 makedepends=('perl')
17 options=('!emptydirs')
18 source=('http://search.cpan.org/CPAN/authors/id/D/DC/DCONWAY/Perl6-Form-0.04.tar.gz')
20 build(){
21   cd "$srcdir/$_perlmod-$pkgver"
23   # Install module in vendor directories.
24   PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
25   make
27   ## For packages with Build.PL, do this instead:
28   # perl Build.PL installdirs=vendor destdir="$pkgdir/"
29   # perl Build
31 check(){
32   cd "$srcdir/$_perlmod-$pkgver"
33   make test
35 package(){
36   cd "$srcdir/$_perlmod-$pkgver"
37   make install DESTDIR="$pkgdir/"
39   ## For packages with Build.PL, do this instead:
40   # perl Build install
42   # remove perllocal.pod and .packlist
43   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
46 md5sums=('e3109dc701d99ed81f4d39a2605ac86a')