# Automatically generated by apkbuild-cpan, template 3 # Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=perl-variable-magic #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=Variable-Magic pkgver=0.63 pkgrel=3 pkgdesc="Associate user-defined magic to variables from Perl." url="https://metacpan.org/release/Variable-Magic/" arch="all" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl $cpandepends" makedepends="perl-dev" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/V/VP/VPIT/Variable-Magic-$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 make } check() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } package() { make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums=" f815d71ffda0fc88b75716fb843a5dcb122b678ce0cb58ac23411af88b7b01180d401519db1b9801c5ee2942ae7b81d6c3d4284ceb57ed3f51d546fb77135611 Variable-Magic-0.63.tar.gz "