# Automatically generated by apkbuild-cpan, template 1
# Contributor:
# Maintainer:
setvar pkgname = 'perl-data-dump'
setvar _pkgreal = 'Data-Dump'
setvar pkgver = '1.23'
setvar pkgrel = '0'
setvar pkgdesc = ""Pretty printing of data structures""
setvar url = ""http://search.cpan.org/dist/Data-Dump/""
setvar arch = ""noarch""
setvar license = ""GPL PerlArtistic""
setvar cpandepends = """"
setvar cpanmakedepends = ""   ""
setvar depends = "$cpandepends"
setvar makedepends = ""perl-dev $cpanmakedepends""
setvar subpackages = ""$pkgname-doc""
setvar source = ""http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/$_pkgreal-$pkgver.tar.gz""

setvar _builddir = ""$srcdir/$_pkgreal-$pkgver""

proc prepare {
	cd $_builddir
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags})'
	PERL_MM_USE_DEFAULT=1' perl Makefile.PL INSTALLDIRS=vendor
}

proc build {
	cd $_builddir
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags})
	make && make test
}

proc package {
	cd $_builddir
	make DESTDIR="$pkgdir" install || return 1
	find $pkgdir '(' -name perllocal.pod -o -name .packlist ')' -delete
}

setvar md5sums = ""762c111e525c82ff23d62c90821b26e9  Data-Dump-1.23.tar.gz""
setvar sha256sums = ""af53b05ef1387b4cab4427e6789179283e4f0da8cf036e8db516ddb344512b65  Data-Dump-1.23.tar.gz""
setvar sha512sums = ""6fd6c23bb6df7f7396219149dbfd23132fc2ea1dd344c32f62fc27a1afeeb28d7ebf2d429184bb6d1189f412e218f9e62a966b49fdd9ad5564e5152d67a02b96  Data-Dump-1.23.tar.gz""