updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / perl-dancer / PKGBUILD
blobdd79de9fc2730ffa945769d3b659668b2e9fb128
1 # CPAN Name  : Dancer
2 # Contributor: Justin Davis <jrcd83@gmail.com>
3 # Generator  : CPANPLUS::Dist::Arch 1.19
5 pkgname='perl-dancer'
6 pkgver='1.3091'
7 pkgrel='1'
8 pkgdesc="A minimal-effort oriented web application framework"
9 arch=('any')
10 license=('PerlArtistic' 'GPL')
11 options=('!emptydirs')
12 depends=('perl-http-body>=1.07' 'perl-http-server-simple-psgi>=0.11' 'perl-libwww' 'perl-mime-types' 'perl-try-tiny>=0.09' 'perl-uri>=1.59')
13 makedepends=()
14 optdepends=('perl-yaml: YAML configuration files'
15   'perl-template-toolkit: Template Toolkit rendering')
16 url='http://search.cpan.org/dist/Dancer'
17 source=('http://search.cpan.org/CPAN/authors/id/X/XS/XSAWYERX/Dancer-1.3091.tar.gz')
18 md5sums=('acff8974ddf07b01e0b5c4579dc4c9e7')
19 _distdir="${srcdir}/Dancer-1.3091"
21 build() {
22   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
23       PERL_AUTOINSTALL=--skipdeps                            \
24       PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
25       PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
26       MODULEBUILDRC=/dev/null
28     cd "$_distdir"
29     /usr/bin/perl Makefile.PL
30     make
31   )
34 check() {
35   cd "$_distdir"
36   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
37     make test
38   )
41 package() {
42   cd "$_distdir"
43   make install
44   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
47 # Local Variables:
48 # mode: shell-script
49 # sh-basic-offset: 2
50 # End:
51 # vim:set ts=2 sw=2 et: