1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-20 01:35:13 +03:00
aports/community/perl-date-extract/APKBUILD

38 lines
1.2 KiB
Text

# Automatically generated by apkbuild-cpan, template 3
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-date-extract
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Date-Extract
pkgver=0.07
pkgrel=0
pkgdesc="Extract probable dates from strings"
url="https://metacpan.org/release/Date-Extract/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-datetime-format-natural perl-class-data-inheritable"
makedepends="perl-dev"
checkdepends="perl-test-mocktime-hires"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/Date-Extract-$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="
ec687cf1513e02ae3fe65d7e9acf89ca5408a26fd9cea4b05d5b9578045248f571922dd6282a4f6e2346d062f7c03842547293c0e0b43c382c587c3bf3b38009 Date-Extract-0.07.tar.gz
"