# Automatically generated by apkbuild-cpan, template 1 # Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=perl-autobox _pkgreal=autobox pkgver=3.0.1 pkgrel=8 pkgdesc="call methods on native types" url="https://metacpan.org/release/autobox" arch="all" license="GPL-1.0-or-later OR Artistic-1.0-Perl" cpandepends="perl-scope-guard" cpanmakedepends="perl-ipc-system-simple perl-test-fatal" depends="$cpandepends" makedepends="perl-dev perl-test-pod $cpanmakedepends" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/C/CH/CHOCOLATE/$_pkgreal-v$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-v$pkgver" 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 } check() { make test } package() { make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="401d5e87e15cf26362a88e5d23d8c9e842b951c03ac7010da2317af5ea897fa1fe2e4862cc5c691f25851fd5ba5398935c27f6d9f87fbc2fe52bb68a25d3d3a0 autobox-v3.0.1.tar.gz"