blob: 43806bbce7f13ba06e44d6d4e3ac8679f4d06381 (
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
|
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-datetime-format-strptime
_pkgreal=DateTime-Format-Strptime
pkgver=1.77
pkgrel=0
pkgdesc="Parse and format strp and strf time patterns"
url="https://metacpan.org/release/DateTime-Format-Strptime/"
arch="noarch"
license="Artistic-2.0"
depends="perl-params-validate perl-datetime perl-try-tiny
perl-package-deprecationmanager perl-datetime-timezone
perl-datetime-locale"
makedepends="perl-test-warnings perl-test-fatal perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
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="d6f997831ffe054b6052dc7d9a783fa64fb2dd90babbd97ea2dd11eacc0e6d1a6718c2dc877c444863be502482f6fc856f02f0feae8abb36220b60f417ee87ec DateTime-Format-Strptime-1.77.tar.gz"
|