blob: 4d9bb6bd6af07f772ee16798e2c543a15aa4b747 (
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.76
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="9aeccf8c911c8e3ec18c8194de3a3840 DateTime-TimeZone-1.76.tar.gz"
sha256sums="6e96779ed04c81979d72b1a02bf12726b408e4b99169d4c9882414a19ebbb2b0 DateTime-TimeZone-1.76.tar.gz"
sha512sums="751df39548fc15217270281d66b6fcbe9cbc3c8ffb3e5f404d38c162ea1002b114190780e6a28d0415cd2b8c14eec62c4435e8de06fe92b8f8dff9fb248c3cbf DateTime-TimeZone-1.76.tar.gz"
|