summaryrefslogtreecommitdiffstats
path: root/main/perl-datetime-format-natural/APKBUILD
blob: 4777487522a829a05b74be76033db26f01d1409f (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
# 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.02
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"
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"

prepare() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	perl Build.PL installdirs=vendor || return 1
}

build() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	./Build && ./Build test
}

package() {
	cd "$_builddir"
	./Build install destdir="$pkgdir" || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

md5sums="258203626de566250ef245b2b680cacc  DateTime-Format-Natural-1.02.tar.gz"
sha256sums="5479c48ade5eca9712784afee18c58308d56742a204d5ea9040d011f705303e3  DateTime-Format-Natural-1.02.tar.gz"
sha512sums="e291fb862499e3b823bb5ac216413ee8d316bf86d731c94d7204146f14ecb21d474d78bf90d584858e95b52b7f49fa0603da30cb59016ef65678f89f78353130  DateTime-Format-Natural-1.02.tar.gz"