aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-datetime-format-iso8601/APKBUILD
blob: 833865b962c3b4e1861b920b6853d684947639d8 (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
# Automatically generated by apkbuild-cpan, template 2
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-datetime-format-iso8601
_pkgreal=DateTime-Format-ISO8601
pkgver=0.08
pkgrel=1
pkgdesc="Parses ISO8601 formats"
url="https://metacpan.org/release/DateTime-Format-ISO8601/"
arch="noarch"
license="GPL-1.0-or-later Artistic-1.0-Perl"
cpandepends="perl-datetime perl-datetime-format-builder"
depends="$cpandepends"
makedepends="perl-module-build perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/J/JH/JHOBLITT/DateTime-Format-ISO8601-$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="88b9c538bf7566cf9857266505e47ea58b72b0cf447bde0b5ca79e9c19ea66118bdb62d4039284e1ab901a0016044613307de654a642761d91989bfb50735979  DateTime-Format-ISO8601-0.08.tar.gz"