summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-27 03:54:38 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-27 03:54:38 -0500
commitcf65bdadd251df07a938305616459ad8c540e40a (patch)
treeb767c38f466ec53595fd324e252f2b82e7823eab
parent74831e93bf445702c5fb2c34640bcc4332264588 (diff)
downloadpackages-cf65bdadd251df07a938305616459ad8c540e40a.tar.gz
packages-cf65bdadd251df07a938305616459ad8c540e40a.tar.bz2
packages-cf65bdadd251df07a938305616459ad8c540e40a.tar.xz
packages-cf65bdadd251df07a938305616459ad8c540e40a.zip
user/perl-gd: pull in, fix up, modernise
-rw-r--r--user/perl-gd/APKBUILD47
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"