aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-date-manip/APKBUILD
blob: 466886debd4cf0c7222bf9853ca392e994977f8e (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.53
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="d78f6e1857e74aa4883482348fca4668  Date-Manip-6.53.tar.gz"
sha256sums="677aebc40e4e84eef548ac4c54095a19978137aaab9b39c8ee526be6a6f0cb6f  Date-Manip-6.53.tar.gz"
sha512sums="70dec280bb1df1cf093ade2fbfefe0d2028ef156eb3b151acb16131701969cef1356b1955070e0fa7358c64d535c569c36d42674b83b7897fcfdc67fd931048a  Date-Manip-6.53.tar.gz"