aboutsummaryrefslogblamecommitdiffstats
path: root/community/perl-datetime-format-pg/APKBUILD
blob: f9286047c711d7a462756f83ac5c8856a81dabb5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                                
                                                      






















                                                                                                                                                                   
# 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-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
"