2021-04-07 00:52:23 +00:00
|
|
|
# Maintainer: Pierre Schmitz <pierre@archlinux.de>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - drop depend on libavif so v5 can build
|
|
|
|
|
|
|
|
pkgname=gd
|
2021-09-12 20:58:04 +00:00
|
|
|
pkgver=2.3.3
|
2021-10-21 23:12:24 +00:00
|
|
|
pkgrel=3
|
2021-04-07 00:52:23 +00:00
|
|
|
pkgdesc="Library for the dynamic creation of images by programmers"
|
|
|
|
arch=('x86_64')
|
|
|
|
url="https://libgd.github.io/"
|
|
|
|
license=('custom')
|
|
|
|
depends=('fontconfig' 'libxpm' 'libwebp' 'libheif')
|
|
|
|
optdepends=('perl: bdftogd script')
|
|
|
|
checkdepends=('ttf-liberation')
|
2021-09-25 16:07:00 +00:00
|
|
|
source=("https://github.com/libgd/libgd/archive/${pkgname}-${pkgver}.tar.gz"
|
|
|
|
'https://github.com/libgd/libgd/commit/bdc281eadb1d58d5c0c7bbc1125ee4674256df08.patch')
|
|
|
|
sha256sums=('24429f9d0dbe0f865aaa4b1a63558242396ba9134e6cfd32ca5e486a84483350'
|
|
|
|
'2ae91e3e018440c74c1628bac5deed2851234f2b5bfea49bf805312c64d0115e')
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd libgd-${pkgname}-${pkgver}
|
|
|
|
|
|
|
|
# Re-add macros that are used in PHP
|
|
|
|
# See https://github.com/php/php-src/pull/7490
|
|
|
|
patch -p1 -R -i "$srcdir/bdc281eadb1d58d5c0c7bbc1125ee4674256df08.patch"
|
|
|
|
}
|
2021-04-07 00:52:23 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd libgd-${pkgname}-${pkgver}
|
|
|
|
|
|
|
|
./bootstrap.sh
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--disable-rpath
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd libgd-${pkgname}-${pkgver}
|
|
|
|
|
2021-09-12 20:58:04 +00:00
|
|
|
TMP=$(mktemp -d) make check
|
2021-04-07 00:52:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd libgd-${pkgname}-${pkgver}
|
|
|
|
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
|
|
}
|