aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-date-manip/APKBUILD
blob: eeeb792c9c210c5900e414ff364be46673dc10c3 (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
# Automatically generated by apkbuild-cpan, template 3
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-date-manip
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Date-Manip
pkgver=6.89
pkgrel=0
pkgdesc="Date manipulation routines"
url="https://metacpan.org/release/Date-Manip/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
checkdepends="perl-test-inter"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/S/SB/SBECK/Date-Manip-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

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

sha512sums="
14e1bb9173f9895cfecf17642c70fa00e5406b875bf88115b31c12a47d1d7c132587a41ac924da6e94aa4d20de17bbe3f4d9a11b05c3ae3d57802f55fa5ad5f8  Date-Manip-6.89.tar.gz
"