aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-date-manip/APKBUILD
blob: c4d8f42467f80af797f7319091d5e3cb909766cc (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.39
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="dd91d884b5ff044134c2870b1de678c9  Date-Manip-6.39.tar.gz"
sha256sums="78a531bbc04029795f21f780421f8551e5fa6cac53802a962bfb110b0bbbe2a0  Date-Manip-6.39.tar.gz"
sha512sums="1d4c0a3d997f623686acb5689458e78f023c608fc59d47b8bbf582470a144a84d043f7e1c9768f9191d4418e4c1195bc850a64ee84982c0ef1b0ee266680167d  Date-Manip-6.39.tar.gz"