# Maintainer: Pierre Schmitz pkgname=gd pkgver=2.3.0 pkgrel=1 pkgdesc="Library for the dynamic creation of images by programmers" arch=('x86_64') url="https://libgd.github.io/" 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") sha1sums=('ec75c84aa6326a7ade3302d5c18471f440b2ca1e') build() { cd libgd-${pkgver} ./configure \ --prefix=/usr \ --disable-rpath make } check() { cd libgd-${pkgver} make check } package() { cd libgd-${pkgver} make DESTDIR="${pkgdir}" install install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }