updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / perl-text-caml / PKGBUILD
blob7ff93f8fb2e592a0814b4308022050bd1c27c5df
1 # Contributor: minimalist <minimalist@lavabit.com>
2 # Generator  : CPANPLUS::Dist::Arch 1.19
4 pkgname='perl-text-caml'
5 pkgver='0.009005'
6 pkgrel='1'
7 pkgdesc="Mustache-like template engine"
8 arch=('any')
9 license=('PerlArtistic' 'GPL')
10 options=('!emptydirs')
11 depends=('perl')
12 makedepends=()
13 url='http://search.cpan.org/dist/Text-Caml'
14 source=('http://search.cpan.org/CPAN/authors/id/V/VT/VTI/Text-Caml-0.009005.tar.gz')
15 md5sums=('9cbd5fc47c6c98a60c89f91b4fd09938')
16 sha512sums=('52c3395a9d70415aed0479ff701a2f3c6ac05c27d795226aec50d3903230f59207f51885810be81173bbff1ad8504e71d2cf2cce5af85d69913ca935b113a67d')
17 _distdir="${srcdir}/Text-Caml-0.009005"
19 build() {
20   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
21       PERL_AUTOINSTALL=--skipdeps                            \
22       PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
23       PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
24       MODULEBUILDRC=/dev/null
26     cd "$_distdir"
27     /usr/bin/perl Makefile.PL
28     make
29   )
32 check() {
33   cd "$_distdir"
34   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
35     make test
36   )
39 package() {
40   cd "$_distdir"
41   make install
43   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
46 # Local Variables:
47 # mode: shell-script
48 # sh-basic-offset: 2
49 # End:
50 # vim:set ts=2 sw=2 et: