# Automatically generated by apkbuild-cpan, template 2 # Contributor: Timo Teräs # Maintainer: Timo Teräs pkgname=perl-class-c3-componentised _pkgreal=Class-C3-Componentised pkgver=1.001002 pkgrel=2 pkgdesc="Load mix-ins or components to your C3-based class" url="https://metacpan.org/release/Class-C3-Componentised" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl perl-class-c3 perl-class-inspector perl-mro-compat perl-test-exception" makedepends="perl-module-install" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/H/HA/HAARG/Class-C3-Componentised-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" prepare() { default_prepare export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make } package() { make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } check() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } sha512sums="11f7d752fec271e0e1274fcfe56dadece07e79b0986bbad86fff569e74900d9fb2e68a3aeb1e465073f01e3e4dda3f4644117084880321f8213ef05ec7e2bdc0 Class-C3-Componentised-1.001002.tar.gz"