mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 11:04:37 +08:00
34 lines
796 B
Bash
34 lines
796 B
Bash
pkgname=gd
|
|
pkgver=2.2.3
|
|
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')
|
|
source=("https://github.com/libgd/libgd/releases/download/gd-${pkgver}/libgd-${pkgver}.tar.xz")
|
|
sha256sums=('746b6cbd6769a22ff3ba6f5756f3512a769bd4cdf4695dff17f4867f25fa7d3c')
|
|
|
|
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"
|
|
}
|