aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-date-manip/APKBUILD
blob: 641db444eea5de6d5c39203b9774b8bd0dacda74 (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.78
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"
cpandepends="perl-yaml-syck"
cpanmakedepends="perl-test-inter"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends perl-module-build"
checkdepends="perl-test-pod perl-test-pod-coverage perl-file-find-rule"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/S/SB/SBECK/Date-Manip-$pkgver.tar.gz"

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

prepare() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	make
}

check() {
	make test
}

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

sha512sums="10c694e535adb4f64d13643042ba43d8e0690260297831fb707583ac750273ff294cacf830e9f84d9dab616822fa2064cad89b9d30f4a4018860ed018391a6ea  Date-Manip-6.78.tar.gz"