1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-26 12:45:20 +03:00
aports/main/perl-regexp-common/APKBUILD
2022-12-31 14:36:43 +01:00

39 lines
1.2 KiB
Text

# Automatically generated by apkbuild-cpan, template 3
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-regexp-common
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Regexp-Common
pkgver=2017060201
pkgrel=3
pkgdesc="Provide commonly requested regular expressions"
url="https://metacpan.org/release/Regexp-Common/"
arch="noarch"
license="MIT OR Artistic-2.0"
depends="perl"
makedepends="perl-dev"
checkdepends="perl-test-regexp"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/A/AB/ABIGAIL/Regexp-Common-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
options="!check" # take forever
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="
fd046d775214bdca42f868557559595360b069121a75fc119f45e064091000968d9d84154f8a0f06072ecff169dccecf68be58f99a7196932fcb4ffcbd678608 Regexp-Common-2017060201.tar.gz
"