summaryrefslogtreecommitdiffstats
path: root/perl-calendar-simple/PKGBUILD
blob: 9b167a534a06d47ed5b3094682436279485d915c (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
33
# Contributor: AUR Perl <aurperl@juster.info>
# Generator  : CPANPLUS::Dist::Arch 1.10
pkgname='perl-calendar-simple'
pkgver='1.21'
pkgrel='1'
pkgdesc="Perl extension to create simple calendars"
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl')
makedepends=()
url='http://search.cpan.org/dist/Calendar-Simple'
source=('http://search.cpan.org/CPAN/authors/id/D/DA/DAVECROSS/Calendar-Simple-1.21.tar.gz')
md5sums=('8fbfe46c0a25d036ca100460fcd00223')

build() {
  PERL=/usr/bin/perl
  DIST_DIR="${srcdir}/Calendar-Simple-1.21"
  export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
    PERL_AUTOINSTALL=--skipdeps                            \
    PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
    PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
    MODULEBUILDRC=/dev/null

  { cd "$DIST_DIR" &&
    $PERL Makefile.PL &&
    make &&
    make test &&
    make install;
  } || return 1;

  find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}