[arch-commits] Commit in gd/repos (4 files)
Ionut Biru
ibiru at archlinux.org
Mon Jan 30 18:45:59 UTC 2012
Date: Monday, January 30, 2012 @ 13:45:58
Author: ibiru
Revision: 148104
db-move: moved gd from [staging] to [testing] (i686)
Added:
gd/repos/testing-i686/
gd/repos/testing-i686/PKGBUILD
(from rev 148047, gd/repos/staging-i686/PKGBUILD)
gd/repos/testing-i686/libpng14.patch
(from rev 148047, gd/repos/staging-i686/libpng14.patch)
Deleted:
gd/repos/staging-i686/
----------------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
libpng14.patch | 12 ++++++++++++
2 files changed, 43 insertions(+)
Copied: gd/repos/testing-i686/PKGBUILD (from rev 148047, gd/repos/staging-i686/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD (rev 0)
+++ testing-i686/PKGBUILD 2012-01-30 18:45:58 UTC (rev 148104)
@@ -0,0 +1,31 @@
+# $Id$
+# Maintainer: Eric Belanger <eric at archlinux.org>
+
+pkgname=gd
+pkgver=2.0.36RC1
+pkgrel=5
+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')
+optdepends=('perl: bdftogd script')
+options=('!libtool')
+source=("ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
+ 'libpng14.patch')
+md5sums=('e876979ca3130623a4e7866d9579171a'
+ '7921556f4960e8d66cf4fb67ea7101b5')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ patch -Np1 -i ${srcdir}/libpng14.patch
+ ./configure --prefix=/usr --without-xpm
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+ install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
Copied: gd/repos/testing-i686/libpng14.patch (from rev 148047, gd/repos/staging-i686/libpng14.patch)
===================================================================
--- testing-i686/libpng14.patch (rev 0)
+++ testing-i686/libpng14.patch 2012-01-30 18:45:58 UTC (rev 148104)
@@ -0,0 +1,12 @@
+diff -Nur gd-2.0.36RC1.orig/gd_png.c gd-2.0.36RC1/gd_png.c
+--- gd-2.0.36RC1.orig/gd_png.c 2007-11-27 10:30:34.000000000 +0200
++++ gd-2.0.36RC1/gd_png.c 2010-01-17 17:14:11.000000000 +0200
+@@ -151,7 +151,7 @@
+ return NULL;
+ }
+
+- if (!png_check_sig (sig, 8)) { /* bad signature */
++ if (png_sig_cmp (sig, 0, 8)) { /* bad signature */
+ return NULL; /* bad signature */
+ }
+
More information about the arch-commits
mailing list