aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-path-iterator-rule/APKBUILD
blob: 51a80e3add618d133ac2c46f0abf242a6bee2bec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# 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.015
pkgrel=1
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="
cc310fa74855021edc86c1fcd5686684ec372062463d6f0b6e83795313ee4ee69207f20a893fbf8031991abdf40bdaa117529e92f5f3d57fb13c9700a9422481  Path-Iterator-Rule-1.015.tar.gz
"