aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-datetime-timezone/APKBUILD
blob: 09f88677a7d899207b021c56cb818d4ff30a9b3b (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.81
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="62d4153bfb175ee3b04482b2f4b0b177  DateTime-TimeZone-1.81.tar.gz"
sha256sums="62f74919227aa996600ab508b999c658e3aa5789098ade189cf82dd2d9e6833d  DateTime-TimeZone-1.81.tar.gz"
sha512sums="1b110fea68cf872d3ec125685936e63f8dc68f36a5170579961e543d82a15d7f12537d2f4f7c5ee2ae6a4cb6584ea32923a7f165cbfc650138f6d2737d996b2d  DateTime-TimeZone-1.81.tar.gz"