1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 19:55:26 +03:00
aports/testing/perl-datetime-format-atom/APKBUILD

39 lines
1.1 KiB
Text

# Automatically generated by apkbuild-cpan, template 4
# Contributor: Celeste <cielesti@protonmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=perl-datetime-format-atom
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=DateTime-Format-Atom
pkgver=1.6.0
pkgrel=0
pkgdesc="Parse and format Atom datetime strings"
url="https://metacpan.org/release/DateTime-Format-Atom/"
arch="noarch"
license="CC0-1.0"
depends="perl perl-datetime-format-rfc3339"
checkdepends="perl-test-pod"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/I/IK/IKEGAMI/DateTime-Format-Atom-v$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-v$pkgver"
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
INSTALLDIRS=vendor \
NO_PACKLIST=1 \
NO_PERLLOCAL=1
make
}
check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="
96a05bad744eedb5fdae950959b4d8309e4a0f56ca238ba8abf26418da102160f3f5f49813d92fbab92fc0a6971e95f6b23b3b7e4f4abfb74a8ab9669c80eac1 DateTime-Format-Atom-v1.6.0.tar.gz
"