aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-datetime-format-pg/APKBUILD
blob: f2db4b723bf4eeb6bd61c5517ea4be0789d4e1f4 (plain) (blame)
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
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=perl-datetime-format-pg
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=DateTime-Format-Pg
pkgver=0.16014
pkgrel=0
pkgdesc="Parse and format PostgreSQL dates and times"
url="https://metacpan.org/release/DateTime-Format-Pg/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-datetime-format-builder perl-datetime-timezone perl-datetime"
makedepends="perl-dev perl-module-build-tiny perl-module-build"

subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/D/DM/DMAKI/DateTime-Format-Pg-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	perl Build.PL --installdirs=vendor
	./Build
}

check() {
	./Build test
}

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

sha512sums="
ff0072cac10b4457297bea958eb25c65b2d8d278257e26e3b0d12f290093ae14bb98dda7c8632562d4d45b02a2834438b93d0c6df802759938dd21b7151a8a9c  DateTime-Format-Pg-0.16014.tar.gz
"