summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2af491755fa068803e46e7139df600739fe67bbc (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
44
45
46
# Maintainer: Moritz Bunkus <moritz@bunkus.org>

pkgname=perl-convert-nlsdateformat
pkgver="0.06"
pkgrel='2'
pkgdesc="Convert Oracle NLS_DATE_FORMAT to/from strftime format strings"
arch=(any)
license=('PerlArtistic')
url="http://search.cpan.org/dist/Convert-NLS_DATE_FORMAT/"
options=('!emptydirs')
makedepends=('perl-module-build-tiny')
source=(http://search.cpan.org/CPAN/authors/id/K/KO/KOLIBRIE/Convert-NLS_DATE_FORMAT-${pkgver}.tar.gz)
md5sums=('6224b6bb3c112cc525c970fd2af606aa')
sha512sums=('ac2d0f9c1cce14016e7212bc6c2e9e017a1267ff6d5a9d7a08c02ec6ad8c480f76544fe723f2a338c2d1033d144a36d53d275557f9811e9a8d87e91d9d744358')

prepare_environment() {
  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}/Convert-NLS_DATE_FORMAT-${pkgver}"
}

build() {
  prepare_environment
  /usr/bin/perl Build.PL
  ./Build
}

check() {
  prepare_environment
  ./Build test
}

package() {
  prepare_environment
  ./Build install
  find "$pkgdir" "(" -name .packlist -o -name perllocal.pod ")" -delete
}

# Local Variables:
# mode: shell-script
# sh-basic-offset: 2
# End:
# vim:set ts=2 sw=2 et: