# Automatically generated by apkbuild-cpan, template 3 # Contributor: Valery Kartel # Maintainer: Valery Kartel pkgname=perl-gd #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=GD pkgver=2.77 pkgrel=1 pkgdesc="Perl interface to the gd2 graphics library" url="https://metacpan.org/release/GD/" arch="all" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl" makedepends="perl-dev perl-extutils-pkgconfig gd-dev libjpeg-turbo-dev zlib-dev libpng-dev freetype-dev libwebp-dev" checkdepends="perl-test-fork" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/R/RU/RURBAN/GD-$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=" de794793bdd4d965bf42a5de0f0d622f037700d9db0e94a1cc20dad8dc1b35003dd15bf3352da1dc63072e079ee91367620806f992d0d3dd0c63baa016fa5268 GD-2.77.tar.gz "