aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-datetime-format-natural/APKBUILD
blob: 8ce37e0674284c5323b871be68a263fb5c0d2745 (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-datetime-format-natural
_pkgreal=DateTime-Format-Natural
pkgver=1.06
pkgrel=0
pkgdesc="Create machine readable date/time with natural parsing logic"
url="http://search.cpan.org/dist/DateTime-Format-Natural/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-datetime-timezone perl-clone perl-params-validate
	perl-list-moreutils perl-datetime perl-boolean"
cpanmakedepends="perl-module-util perl-test-mocktime perl-date-calc
	perl-mro-compat perl-role-tiny"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/S/SC/SCHUBIGER/$_pkgreal-$pkgver.tar.gz"

builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	cd "$builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	cd "$builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	make test
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="94a7edcc7690e6d422e75c09dfaba3cfbd47f5423406a4b091c8163390d80719e6a60d6bed41944c7be99afe04e9dd3c36d21fb665b06ffe0441971e1c9fbc1c  DateTime-Format-Natural-1.06.tar.gz"