blob: 2bc5a5359dff1cf10de770edeb6b3af1006852d1 (
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
|
# Contributor: Michał Wojdyła < micwoj9292 at gmail dot com >
# Contributor: John D Jones III AKA jnbek <jnbek1972 -_AT_- g m a i l -_Dot_- com>
pkgname='perl-datetime-format-natural'
pkgver='1.18'
pkgrel='1'
pkgdesc="Parse informal natural language date/time strings"
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl-clone' 'perl-datetime' 'perl-datetime-hires' 'perl-boolean')
makedepends=('perl-module-build')
checkdepends=('perl-module-util' 'perl-test-mocktime-hires')
url='https://metacpan.org/dist/DateTime-Format-Natural'
source=(https://cpan.metacpan.org/authors/id/S/SC/SCHUBIGER/DateTime-Format-Natural-$pkgver.tar.gz)
md5sums=('17253821734e7166036e3e223fd3f006')
_distdir="DateTime-Format-Natural-$pkgver"
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/$_distdir"
/usr/bin/perl Build.PL
/usr/bin/perl Build
)
}
check() {
cd "$srcdir/$_distdir"
( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
unset DISPLAY
/usr/bin/perl Build test
)
}
package() {
cd "$srcdir/$_distdir"
/usr/bin/perl Build install
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}
|