summaryrefslogtreecommitdiffstats
path: root/abs/extra/gd/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra/gd/PKGBUILD')
-rw-r--r--abs/extra/gd/PKGBUILD25
1 files changed, 13 insertions, 12 deletions
diff --git a/abs/extra/gd/PKGBUILD b/abs/extra/gd/PKGBUILD
index b050624..f3dfcd2 100644
--- a/abs/extra/gd/PKGBUILD
+++ b/abs/extra/gd/PKGBUILD
@@ -1,27 +1,28 @@
# $Id$
pkgname=gd
-pkgver=2.1.0
-pkgrel=3
+pkgver=2.1.1
+pkgrel=2
pkgdesc="Library for the dynamic creation of images by programmers"
arch=('i686' 'x86_64')
url="http://www.libgd.org/"
license=('custom')
depends=('fontconfig' 'libvpx' 'libxpm' 'libtiff')
+makedepends=('git')
optdepends=('perl: bdftogd script')
-source=("https://bitbucket.org/libgd/gd-libgd/downloads/libgd-${pkgver}.tar.xz"
- 'color_c_null_pointer.patch')
-md5sums=('03588159bf4faab9079849c8d709acc6'
- '51f5ff073eabbd7809e0ce438d5bb1c2')
+source=("${pkgname}::git+https://github.com/libgd/libgd.git#tag=${pkgname}-${pkgver}"
+ gd-2.1.1-libvpx-1.4.0.patch)
+md5sums=('SKIP'
+ '9114dd8259aaa88b0a09188fe7b19afc')
prepare() {
- cd libgd-${pkgver}
- # CVE-2014-2497
- patch -p1 -i ${srcdir}/color_c_null_pointer.patch
+ cd ${pkgname}
+ ./bootstrap.sh
+ patch -p1 -i "${srcdir}/gd-2.1.1-libvpx-1.4.0.patch"
}
build() {
- cd libgd-${pkgver}
+ cd ${pkgname}
./configure \
--prefix=/usr \
--disable-rpath \
@@ -31,12 +32,12 @@ build() {
}
check() {
- cd libgd-${pkgver}
+ cd ${pkgname}
make check
}
package() {
- cd libgd-${pkgver}
+ cd ${pkgname}
make DESTDIR="${pkgdir}" install
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}