# Automatically generated by apkbuild-cpan, template 1 # Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=perl-data-dump _pkgreal=Data-Dump pkgver=1.23 pkgrel=3 pkgdesc="Pretty printing of data structures" url="https://metacpan.org/release/Data-Dump/" arch="noarch" license="GPL PerlArtistic" depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/G/GA/GAAS/$_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="6fd6c23bb6df7f7396219149dbfd23132fc2ea1dd344c32f62fc27a1afeeb28d7ebf2d429184bb6d1189f412e218f9e62a966b49fdd9ad5564e5152d67a02b96 Data-Dump-1.23.tar.gz"