mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 11:24:37 +08:00
39 lines
1006 B
Bash
39 lines
1006 B
Bash
pkgname=gd
|
|
pkgver=2.2.4
|
|
pkgrel=1
|
|
pkgdesc='Library for the dynamic creation of images by programmers'
|
|
arch=('x86_64')
|
|
url='http://www.libgd.org/'
|
|
license=('custom')
|
|
depends=('libpng' 'fontconfig' 'libjpeg-turbo' 'libxpm')
|
|
optdepends=('perl: bdftogd script')
|
|
checkdepends=('ttf-liberation')
|
|
source=("https://github.com/libgd/libgd/releases/download/gd-${pkgver}/libgd-${pkgver}.tar.xz"
|
|
'gd-2.2.4-upstream.patch')
|
|
sha256sums=('137f13a7eb93ce72e32ccd7cebdab6874f8cf7ddf31d3a455a68e016ecd9e4e6'
|
|
'0aa73d278fa7bc70c830660ff8539fb32d703f80523ecdb0994b7e14846435d7')
|
|
|
|
prepare() {
|
|
cd libgd-${pkgver}
|
|
patch -p1 -i ${srcdir}/gd-2.2.4-upstream.patch
|
|
}
|
|
|
|
build() {
|
|
cd ${srcdir}/libgd-${pkgver}
|
|
./configure \
|
|
--prefix=/usr\
|
|
--without-xpm
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd ${srcdir}/libgd-${pkgver}
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/libgd-${pkgver}
|
|
make DESTDIR="${pkgdir}" install
|
|
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
}
|