blob: 304d4a5bd6a3be263471cfe0938846087e0fba34 (
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: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-datetime-format-builder
_pkgreal=DateTime-Format-Builder
pkgver=0.82
pkgrel=1
pkgdesc="Create DateTime parser classes and objects."
url="https://metacpan.org/release/DateTime-Format-Builder"
arch="noarch"
license="Artistic-2.0"
cpandepends="perl-datetime-format-strptime perl-datetime perl-class-factory-util
perl-params-validate"
depends="$cpandepends"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/DateTime-Format-Builder-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
default_prepare
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make
}
check() {
make test
}
package() {
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="e89becd9875f84df8f83ea2081bf6b08cad4a62af6f8d193ce6735ae8442881ca826e68c894879d3c5e90d1fcc60b7b5fa5ba4b7f9dbba92a4c2e26fc54dca1e DateTime-Format-Builder-0.82.tar.gz"
|