From 33195fb417ba15ccf0ef7d59511817bee5e4bb32 Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Wed, 21 Mar 2018 19:08:25 +0000
Subject: gd: update to 2.2.5

---
 abs/extra/gd/PKGBUILD | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/abs/extra/gd/PKGBUILD b/abs/extra/gd/PKGBUILD
index 75242e6..f0337ba 100644
--- a/abs/extra/gd/PKGBUILD
+++ b/abs/extra/gd/PKGBUILD
@@ -2,16 +2,17 @@
 # Maintainer: Pierre Schmitz <pierre@archlinux.de>
 
 pkgname=gd
-pkgver=2.2.3
-pkgrel=3
+pkgver=2.2.5
+pkgrel=1
 pkgdesc="Library for the dynamic creation of images by programmers"
-arch=('i686' 'x86_64')
+arch=('x86_64')
 url="http://www.libgd.org/"
 license=('custom')
 depends=('fontconfig' 'libxpm' 'libwebp')
 optdepends=('perl: bdftogd script')
+checkdepends=('ttf-liberation')
 source=("https://github.com/libgd/libgd/releases/download/gd-${pkgver}/libgd-${pkgver}.tar.xz")
-md5sums=('14e4134c129b4c166c3a0549a32ef340')
+md5sums=('8d8d6a6189513ecee6e893b1fb109bf8')
 
 build() {
   cd libgd-${pkgver}
@@ -23,7 +24,8 @@ build() {
 
 check() {
   cd libgd-${pkgver}
-  [[ ${CARCH} == 'i686' ]] || make check
+  # see https://github.com/libgd/libgd/issues/302
+  [[ ${CARCH} == 'i686' ]] || FREETYPE_PROPERTIES='truetype:interpreter-version=35' make check
 }
 
 package() {
-- 
cgit v0.12

