# Automatically generated by apkbuild-cpan, template 2 # Contributor: Timo Teräs # Maintainer: Timo Teräs setvar pkgname = 'perl-data-printer' setvar _pkgreal = 'Data-Printer' setvar pkgver = '0.39' setvar pkgrel = '0' setvar pkgdesc = ""colored pretty-print of Perl data structures and objects"" setvar url = ""http://search.cpan.org/dist/Data-Printer/"" setvar arch = ""noarch"" setvar license = ""GPL PerlArtistic"" setvar cpandepends = ""perl-sort-naturally perl-package-stash perl-file-homedir perl-clone-pp"" setvar cpanmakedepends = """" setvar cpancheckdepends = """" setvar depends = "$cpandepends" setvar makedepends = ""perl-dev $cpanmakedepends"" setvar checkdepends = "$cpancheckdepends" setvar subpackages = ""$pkgname-doc"" setvar source = ""http://search.cpan.org/CPAN/authors/id/G/GA/GARU/$_pkgreal-$pkgver.tar.gz"" setvar builddir = ""$srcdir/$_pkgreal-$pkgver"" proc prepare { default_prepare || return 1 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 } proc package { cd $builddir make DESTDIR="$pkgdir" install || return 1 find $pkgdir '(' -name perllocal.pod -o -name .packlist ')' -delete } proc check { cd $builddir export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } setvar sha512sums = ""4110f4a8c0f1516df14e418ba4b5b2b6a30790cbf838f81a9dec862f62355cf3035f482ccd0d118bb3d16f28dd381d518c23d65b95d045444438b9721062eb9c Data-Printer-0.39.tar.gz""