aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-date-manip/APKBUILD
blob: f48266820679379f85f666280afe73c5849c13b0 (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
# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-date-manip
_pkgreal=Date-Manip
pkgver=6.50
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"
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"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	perl Build.PL installdirs=vendor || return 1
}

build() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	./Build && ./Build test
}

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

md5sums="62c86841f9c57ebe663178195c1df272  Date-Manip-6.50.tar.gz"
sha256sums="188f3537acacb63f8805bed79372a10d9e14380df5389b473989c490dce2a07d  Date-Manip-6.50.tar.gz"
sha512sums="ca6fbce87a5e28eae336627066435619ca43bdcbed952a25afea141aec254b7a4506495a2789894590691bf02640fbf739011ca4e8f7f0de7f57af7b338a4acc  Date-Manip-6.50.tar.gz"