summaryrefslogtreecommitdiffstats
path: root/abs/extra/gd/PKGBUILD
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2014-12-04 13:22:54 (GMT)
committerBritney Fransen <brfransen@gmail.com>2014-12-04 13:22:54 (GMT)
commit49482353acaae83f37b98c13a2e414e23c73436b (patch)
treeb63f53dd24f24ff5d78f060aed46f1206a25f23f /abs/extra/gd/PKGBUILD
parent455c62210eb75e647580ae9dc114c1054874773e (diff)
downloadlinhes_pkgbuild-49482353acaae83f37b98c13a2e414e23c73436b.zip
linhes_pkgbuild-49482353acaae83f37b98c13a2e414e23c73436b.tar.gz
linhes_pkgbuild-49482353acaae83f37b98c13a2e414e23c73436b.tar.bz2
gd: update to 2.1.0
Diffstat (limited to 'abs/extra/gd/PKGBUILD')
-rw-r--r--abs/extra/gd/PKGBUILD41
1 files changed, 26 insertions, 15 deletions
diff --git a/abs/extra/gd/PKGBUILD b/abs/extra/gd/PKGBUILD
index 2d89e7b..b050624 100644
--- a/abs/extra/gd/PKGBUILD
+++ b/abs/extra/gd/PKGBUILD
@@ -1,31 +1,42 @@
-# $Id: PKGBUILD 148724 2012-02-05 11:48:15Z ibiru $
-# Maintainer: Eric Belanger <eric@archlinux.org>
+# $Id$
pkgname=gd
-pkgver=2.0.36RC1
-pkgrel=5
+pkgver=2.1.0
+pkgrel=3
pkgdesc="Library for the dynamic creation of images by programmers"
arch=('i686' 'x86_64')
url="http://www.libgd.org/"
license=('custom')
-depends=('libpng' 'fontconfig' 'libjpeg')
+depends=('fontconfig' 'libvpx' 'libxpm' 'libtiff')
optdepends=('perl: bdftogd script')
-options=('!libtool')
-source=("ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
- 'libpng14.patch')
-md5sums=('e876979ca3130623a4e7866d9579171a'
- '7921556f4960e8d66cf4fb67ea7101b5')
+source=("https://bitbucket.org/libgd/gd-libgd/downloads/libgd-${pkgver}.tar.xz"
+ 'color_c_null_pointer.patch')
+md5sums=('03588159bf4faab9079849c8d709acc6'
+ '51f5ff073eabbd7809e0ce438d5bb1c2')
-build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+prepare() {
+ cd libgd-${pkgver}
+ # CVE-2014-2497
+ patch -p1 -i ${srcdir}/color_c_null_pointer.patch
+}
- patch -Np1 -i ${srcdir}/libpng14.patch
- ./configure --prefix=/usr --without-xpm
+build() {
+ cd libgd-${pkgver}
+ ./configure \
+ --prefix=/usr \
+ --disable-rpath \
+ --with-vpx=/usr \
+ --with-tiff=/usr
make
}
+check() {
+ cd libgd-${pkgver}
+ make check
+}
+
package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd libgd-${pkgver}
make DESTDIR="${pkgdir}" install
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}