# Automatically generated by apkbuild-cpan, template 3 # Contributor: Valery Kartel # Maintainer: Valery Kartel pkgname=perl-gdgraph #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=GDGraph pkgver=1.56 pkgrel=1 pkgdesc="Produces charts with GD" url="https://metacpan.org/release/GDGraph/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl perl-gdtextutil perl-gd" makedepends="perl-dev" checkdepends="perl-capture-tiny perl-test-exception" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/B/BP/BPS/GDGraph-$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=" 4a336e02cf3ca75b41ccef42d8790b00d7ff60c63686f49c3b0d1fe8ff29ce76c52d4603f74c9b2704e1f1d2ca71f2313dcb692ae10261dbf8e0e05a7172dc71 GDGraph-1.56.tar.gz "