aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-datetime-timezone/APKBUILD
blob: 84cc2e8faf94837fe33a2e8e4cc5513401be5b5c (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
42
# 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=2.06
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-class-singleton perl-try-tiny perl-specio perl-params-validationcompiler perl-module-runtime perl-namespace-autoclean"
cpanmakedepends="  perl-test-fatal 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() {
	default_prepare || return 1

	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="b24832c5dcf43e132e829c1cdc1fa19c  DateTime-TimeZone-2.06.tar.gz"
sha256sums="9c51dd5ac957a43732b4a8d5cf7529e5a6b99ca86b447164cab003b190a8a8a6  DateTime-TimeZone-2.06.tar.gz"
sha512sums="631ce4ef9031bb4daf413e4132f0f99fcad6d2addd76eb4c636ccfc4163f8678c189594062f7544539b9ce8fe8bd867a43d4d30c6ed6c86b4a561ad0ce800d68  DateTime-TimeZone-2.06.tar.gz"