aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-datetime-timezone/APKBUILD
blob: 03f6e6f634e9402628ed2fefc885cb63ac2659e8 (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: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-datetime-timezone
_pkgreal=DateTime-TimeZone
pkgver=1.94
pkgrel=0
pkgdesc="Time zone object base class and factory"
url="http://search.cpan.org/dist/DateTime-TimeZone/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-params-validate perl-class-singleton perl-class-load perl-list-allutils"
cpanmakedepends="  perl-test-fatal perl-test-output perl-test-requires "
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="8a3e0291e2a007074c91f692987fb743  DateTime-TimeZone-1.94.tar.gz"
sha256sums="5fd961b71e7a7f7de6d488e8cf3e443ace1556eaf72c563dc882ff1f8d2536b3  DateTime-TimeZone-1.94.tar.gz"
sha512sums="9c32d7a89ea66dae197227be22bd609a47875d3b0c5db57cd399eaf723884c967f59bfa24661cf6b9105baea05301391216d08968bb0cc18160ecb4c63dd6bed  DateTime-TimeZone-1.94.tar.gz"