# Contributor: Wen Heping # Maintainer: Wen Heping pkgname=perl-catalystx-injectcomponent pkgver=0.025 pkgrel=0 # _pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=CatalystX-InjectComponent pkgdesc="Inject components into your Catalyst application" url="https://metacpan.org/release/CatalystX-InjectComponent/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl perl-catalyst-runtime perl-class-inspector perl-module-pluggable" makedepends="perl-test-most" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/R/RO/ROKR/CatalystX-InjectComponent-$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 \ NO_PACKLIST=1 \ NO_PERLLOCAL=1 make } check() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } package() { make DESTDIR="$pkgdir" install } sha512sums=" 0531f12c79e415e69e9933f25ad04e44a31d45482d5665ea59ed4782fe8d17c0182e224f5275eb88adc9a5a566ded6638c408d74dbc1d75a20f9c6f47b03e3b8 CatalystX-InjectComponent-0.025.tar.gz "