aports/community/perl-file-find-rule/APKBUILD
2025-06-06 02:25:04 +00:00

49 lines
1.3 KiB
Text

# Automatically generated by apkbuild-cpan, template 4
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-file-find-rule
pkgver=0.35
pkgrel=0
# _pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=File-Find-Rule
pkgdesc="Alternative interface to File::Find"
url="https://metacpan.org/release/File-Find-Rule/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-text-glob perl-number-compare"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/R/RC/RCLAMP/File-Find-Rule-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
# secfixes:
# 0.35-r0:
# - CVE-2011-10007
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
INSTALLDIRS=vendor \
NO_PACKLIST=1 \
NO_PERLLOCAL=1
make
}
check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
package() {
make DESTDIR="$pkgdir" install
}
doc() {
local file; find "$pkgdir" -name "*.pod" | while read -r file; do
amove "${file#"$pkgdir"}"
done
default_doc
}
sha512sums="
8604b1b64692872562b300c0b4b2bac923430134ab78d3c367c78b08a2e8f0812c6a2d9f0b4eb5bf89e2d3869fc08b20cfa5b5594665eced5267635b606fb3d9 File-Find-Rule-0.35.tar.gz
"