1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 18:55:29 +03:00
aports/community/perl-path-iterator-rule/APKBUILD

35 lines
1.2 KiB
Text

# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-path-iterator-rule
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Path-Iterator-Rule
pkgver=1.014
pkgrel=2
pkgdesc="iterative, recursive file finder"
url="https://metacpan.org/release/Path-Iterator-Rule/"
arch="noarch"
license="Apache-2.0"
depends="perl perl-number-compare perl-try-tiny perl-text-glob"
checkdepends="perl-test-filename perl-path-tiny perl-file-pushd perl-test-deep"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/Path-Iterator-Rule-$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="d401d3b0f59ffd15d088dc3859a118fb689d6126e5dbc7602db123ae01c461a12831768e4485732781e05d33c69c2f7be90475048633df029ba870346459c591 Path-Iterator-Rule-1.014.tar.gz"