core/gd/PKGBUILD

34 lines
796 B
Bash
Raw Normal View History

2010-03-14 23:48:48 +08:00
pkgname=gd
2016-09-21 22:08:07 +08:00
pkgver=2.2.3
pkgrel=1
2013-12-19 03:15:13 +08:00
pkgdesc='Library for the dynamic creation of images by programmers'
arch=('x86_64')
2013-12-19 03:15:13 +08:00
url='http://www.libgd.org/'
2010-03-14 23:48:48 +08:00
license=('custom')
2013-12-19 03:15:13 +08:00
depends=('libpng'
'fontconfig'
2016-09-21 22:08:07 +08:00
'libjpeg-turbo'
'libxpm')
optdepends=('perl: bdftogd script')
2016-09-21 22:08:07 +08:00
source=("https://github.com/libgd/libgd/releases/download/gd-${pkgver}/libgd-${pkgver}.tar.xz")
sha256sums=('746b6cbd6769a22ff3ba6f5756f3512a769bd4cdf4695dff17f4867f25fa7d3c')
2010-03-14 23:48:48 +08:00
build() {
2013-12-19 03:15:13 +08:00
cd ${srcdir}/libgd-${pkgver}
./configure \
--prefix=/usr\
--without-xpm
make
2010-03-14 23:48:48 +08:00
}
check() {
2013-12-19 03:15:13 +08:00
cd ${srcdir}/libgd-${pkgver}
make check
}
package() {
2013-12-19 03:15:13 +08:00
cd ${srcdir}/libgd-${pkgver}
make DESTDIR="${pkgdir}" install
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}