diff options
Diffstat (limited to 'user/perl-gd')
-rw-r--r-- | user/perl-gd/APKBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/user/perl-gd/APKBUILD b/user/perl-gd/APKBUILD new file mode 100644 index 000000000..1562ac465 --- /dev/null +++ b/user/perl-gd/APKBUILD @@ -0,0 +1,47 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Valery Kartel <valery.kartel@gmail.com> +# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org> +pkgname=perl-gd +_pkgreal=GD +pkgver=2.68 +pkgrel=0 +pkgdesc="Perl module for GD graphics library" +url="https://metacpan.org/release/GD" +arch="all" +license="GPL-2.0-only OR Artistic-1.0-Perl" +cpandepends="" +cpanmakedepends="perl-extutils-pkgconfig" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends freetype-dev libgd-dev libjpeg-turbo-dev + libpng-dev libwebp-dev zlib-dev" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/R/RU/RURBAN/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + cd "$builddir" + if [ -e Build.PL ]; then + perl Build.PL installdirs=vendor + else + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + fi +} + +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="089d5482f55bd7a2990422fac41f6351f73492bb08fdb47c9acfed593e0f05a1a077ef3bf3179676f59e1b0de8ffc0f92b40597283ab2df3d24bb8a5d8d60698 GD-2.68.tar.gz" |