summaryrefslogtreecommitdiffstats
path: root/main/perl-datetime/APKBUILD
blob: 433ec54d301521425e34ef611ff56c9dfa37f31b (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
43
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-datetime
pkgver=1.12
pkgrel=0
pkgdesc="DateTime perl module"
url="http://search.cpan.org/dist/DateTime/"
arch="all"
license="GPLv2 or Artistic"
depends="perl perl-datetime-locale perl-test-exception perl-math-round
	perl-datetime-timezone"
makedepends="perl-dev"
install=""
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/DateTime-$pkgver.tar.gz"

_builddir="$srcdir"/DateTime-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	unset CFLAGS
	perl Build.PL installdirs=vendor || return 1
	./Build
}

package() {
	cd "$_builddir"
	./Build install destdir="$pkgdir"
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

md5sums="a51fa8d7121cb4910a549b897c7753d7  DateTime-1.12.tar.gz"
sha256sums="e65a333806d000825724cfa23d7d33539b853b6e819d4922d2a68579416374ce  DateTime-1.12.tar.gz"
sha512sums="a3fde7b6d76753026b2ff3ac91761b69da3e207a51d24d693c2cf681ff9028cf6f46186e5ebf1993124d1255d080d27d7449f28eaa156b5e032e6e946dddd0a9  DateTime-1.12.tar.gz"