1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 11:19:50 +03:00
aports/testing/perl-xml-regexp/APKBUILD
2022-02-19 19:45:53 +00:00

36 lines
1.1 KiB
Text

# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-xml-regexp
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=XML-RegExp
pkgver=0.04
pkgrel=0
pkgdesc="Perl module for XML-RegExp"
url="https://metacpan.org/release/XML-RegExp/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/T/TJ/TJMATHER/XML-RegExp-$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="
f0ade105a35944b7f91b85fb9e2735d4860eba04402a02e8531b546d8ea49990d9c2a56f113b4a291050fc8aa51eeee9675d49b4d9a69aa5da25fa7f3e3c9802 XML-RegExp-0.04.tar.gz
"