summaryrefslogtreecommitdiff
path: root/pcr/perl-date-simple/PKGBUILD
blob: 7a0b09a6e983c7e674d015b12aa22c0f5058d2dc (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
34
35
36
37
38
39
40
41
42
43
# Contributor (Arch): Andreas dot Wagner at em dot uni-frankfurt dot de
# Contributor: Márcio Silva <coadde@parabola.nu>

pkgname='perl-date-simple'
_perlname='Date-Simple'
pkgver='3.03'
pkgrel='3'
pkgdesc="A simple date object"
arch=('any')
url='http://search.cpan.org/~izut/Date-Simple'
license=('GPL2')
depends=('perl')
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/I/IZ/IZUT/${_perlname}-${pkgver}.tar.gz")

build() {
  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 "${srcdir}/${_perlname}-${pkgver}"
  perl Makefile.PL
  make
}

test(){
  cd "${srcdir}/${_perlname}-${pkgver}"
  make test
}

package() {
  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 "${srcdir}/${_perlname}-${pkgver}"
  make DESTDIR="$pkgdir" install
  find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}

md5sums=('436049dc2c7dfd8423d8bcc807248b31')