blob: 1a8c40b07cc98fb28bd4128534c65205e7ab0766 (
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.10
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="2dccc83565dfffef50611acaa50f0426 DateTime-1.10.tar.gz"
sha256sums="5e7fbb092c86f9f0dd284d8e2ada27f82b47d51eb5f90a04639c022064ed543d DateTime-1.10.tar.gz"
sha512sums="3faf6722d6bd097b323bea74640f97c87c7e08f63cc4a0dd4de88d6e865222e223f19622d471a63189e717d6fa1b1c54f1fe6c68a9ff0398dd63881e25a76a71 DateTime-1.10.tar.gz"
|