# Contributor: Carlo Landmeter # Maintainer: Carlo Landmeter pkgname=gd pkgver=2.2.4 pkgrel=2 _pkgreal=lib$pkgname pkgdesc="Library for the dynamic creation of images by programmers" url="http://libgd.github.io/" arch="all" license="custom" depends= makedepends="bash libpng-dev libjpeg-turbo-dev libwebp-dev freetype-dev zlib-dev" subpackages="$pkgname-dev $_pkgreal:libs" source="https://github.com/$_pkgreal/$_pkgreal/releases/download/$pkgname-$pkgver/$_pkgreal-$pkgver.tar.xz CVE-2016-7568.patch" builddir="$srcdir/$_pkgreal-$pkgver" build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --without-fontconfig \ --disable-werror \ || return 1 make || return 1 } check() { make -C "$builddir" check return 0 } package() { make -C "$builddir" DESTDIR="$pkgdir" install || return 1 } dev() { default_dev || return 1 depends="$pkgname perl" mv "$pkgdir"/usr/bin/bdftogd "$subpkgdir"/usr/bin } sha512sums="07903f322c4f6ab392508b0f60c38ca133699111ea92995dc6cd9379210d598bcb24a46c19657884d9e252f8663d0ee8c89c600e3a382a5ae598198c190f39b5 libgd-2.2.4.tar.xz 8310d11a2398e8617c9defc4500b9ce3897ac1026002ffa36000f1d1f8df19336005e8c1f6587533f1d787a4a54d7a3a28ad25bddbc966a018aedf4d8704a716 CVE-2016-7568.patch"