summaryrefslogtreecommitdiffstats
path: root/main/perl-datetime/APKBUILD
blob: e689de67a35072ff30702923891720626fb24d69 (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.03
pkgrel=1
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="ea0fc830410b9ce3baeef3525bc0acdd  DateTime-1.03.tar.gz"
sha256sums="384f97c73da02492d771d6b5c3b37f6b18c2e12f4db3246b1d61ff19c6d6ad6d  DateTime-1.03.tar.gz"
sha512sums="6764b8bd8ccb22429d17dfc48412a0223481ae43249920347ae91514dbbe0d2f820601372b9cdae312d0ba9460c9abeae9e189afb1666b90e27b09f3daaf335f  DateTime-1.03.tar.gz"