summaryrefslogtreecommitdiff
path: root/system/perl-module-scandeps/APKBUILD
blob: 998711304b0f8b719fca248ecfce8fe8f8d37f19 (plain) (blame)
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 1
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-module-scandeps
_pkgreal=Module-ScanDeps
_author=RSCHUPP
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=1.35
pkgrel=0
pkgdesc="Recursively scan Perl code for dependencies"
url="https://metacpan.org/release/Module-ScanDeps"
arch="noarch"
license="GPL-2.0-only OR Artistic-1.0-Perl"
depends="perl-ipc-run3 perl"
checkdepends="perl-test-requires"
makedepends="perl-test-pod"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="314a8098883995d876bfae7760b569ade56eed1940e50f92a509fd0f2c0020d57da859bb8848c56a9e1dcb4acd62cd246c39424bc1c30d71c6defc9f491518b9  Module-ScanDeps-1.35.tar.gz"