blob: e94e31579156bbd8d2cb682e0515151add8fcd46 (
plain) (
tree)
|
|
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-module-scandeps
_pkgreal=Module-ScanDeps
pkgver=1.27
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"
cpanmakedepends="perl-test-requires"
makedepends="perl-dev $cpanmakedepends perl-test-pod"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RS/RSCHUPP/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
default_prepare
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
check() {
cd "$builddir"
make test
}
sha512sums="ab5625f497a9dc9133960c7c9a5867f27f6f0061fa954225cfc53fda39d9b657743ee66a7a96cc1485bba57532fc0447c3b245dd81cf6e6c39522fdd2e308411 Module-ScanDeps-1.27.tar.gz"
|