aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-date-manip/APKBUILD
blob: f650be5213b2f069c04a8c19df1ca50199280c90 (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
# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-date-manip
_pkgreal=Date-Manip
pkgver=6.56
pkgrel=0
pkgdesc="Date manipulation routines"
url="http://search.cpan.org/dist/Date-Manip/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-yaml-syck"
cpanmakedepends="perl-test-inter   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends perl-module-build"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/S/SB/SBECK/$_pkgreal-$pkgver.tar.gz"

_builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	cd "$_builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$_builddir"
	make && make test
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

md5sums="fc56f1a9097f8bd3da093a8afe7e06e9  Date-Manip-6.56.tar.gz"
sha256sums="acae07026b84d157f161d569b41026f4770e72872a5c7d70c295e2083a1ff5ec  Date-Manip-6.56.tar.gz"
sha512sums="1faf36ab2d96b5841ffd408b981818cb86ca12c327adbc2b29e8369ab63d9cd6a57b1cce232ad46333945d0be4b155761038df19da3f1a0a3f3b66d817c41337  Date-Manip-6.56.tar.gz"