1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/community/perl-date-manip/APKBUILD
2023-03-02 03:41:09 +01:00

37 lines
1.1 KiB
Text

# 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.91
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"
makedepends="perl-dev"
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="
046ccdf4c752355c395bfd29756802c9b1803503d598bf1f2c949291f1583496dc6421490787945bf30f1cbcaa301046bf6310d7842ee6ea50126e122c203d94 Date-Manip-6.91.tar.gz
"