# Automatically generated by apkbuild-cpan, template 1 # Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=perl-autovivification _pkgreal=autovivification pkgver=0.18 pkgrel=1 pkgdesc="Lexically disable autovivification." url="http://search.cpan.org/dist/autovivification/" arch="all" license="GPL PerlArtistic" cpandepends="" cpanmakedepends="" depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/V/VP/VPIT/$_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 } check() { cd "$builddir" make test } package() { cd "$builddir" make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="f5058bf1672a53281d70431cbb2bdd1a37dda8dc3d4191ca3c68c469089c5a1f2a36522f2a0b5d19847d91296f43e49cf6296c87b78940e786f0d0ac106a539e autovivification-0.18.tar.gz"