aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-datetime-format-strptime/APKBUILD
blob: 1bac2147a1461a5abd61d915d60b3d9373adde8e (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
41
# 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.67
pkgrel=0
pkgdesc="Parse and format strp and strf time patterns"
url="http://search.cpan.org/dist/DateTime-Format-Strptime/"
arch="noarch"
license="Artistic-2"
cpandepends="perl-params-validate perl-datetime perl-try-tiny perl-package-deprecationmanager perl-datetime-timezone perl-datetime-locale"
cpanmakedepends="  perl-test-warnings perl-test-fatal "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/$_pkgreal-$pkgver.tar.gz"

_builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	make && make test
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

md5sums="d0d2a70ec818dde0690af6f832312e06  DateTime-Format-Strptime-1.67.tar.gz"
sha256sums="bedc31384dac1ab739edcaa7155411971b513d5d2ee323489bc3257cede07946  DateTime-Format-Strptime-1.67.tar.gz"
sha512sums="71e1215009a638ef97c68ca568fe52486766ce878ccad3f835e706061e1e3da2ffd49cec854b2380ae7225c6e8a8b97c069230db684515c5862e566f8397bb07  DateTime-Format-Strptime-1.67.tar.gz"