[arch-commits] Commit in gd/trunk (PKGBUILD libpng14.patch)

Eric Bélanger eric at nymeria.archlinux.org
Thu Jul 4 04:14:51 UTC 2013


    Date: Thursday, July 4, 2013 @ 06:14:50
  Author: eric
Revision: 189652

upgpkg: gd 2.1.0-1

Upstream update, Add check function, Remove old patch

Modified:
  gd/trunk/PKGBUILD
Deleted:
  gd/trunk/libpng14.patch

----------------+
 PKGBUILD       |   21 +++++++++++----------
 libpng14.patch |   12 ------------
 2 files changed, 11 insertions(+), 22 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-07-04 03:57:29 UTC (rev 189651)
+++ PKGBUILD	2013-07-04 04:14:50 UTC (rev 189652)
@@ -2,8 +2,8 @@
 # Maintainer: Eric Belanger <eric at archlinux.org>
 
 pkgname=gd
-pkgver=2.0.36RC1
-pkgrel=6
+pkgver=2.1.0
+pkgrel=1
 pkgdesc="Library for the dynamic creation of images by programmers"
 arch=('i686' 'x86_64')
 url="http://www.libgd.org/"
@@ -11,21 +11,22 @@
 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')
+source=(https://bitbucket.org/libgd/gd-libgd/downloads/libgd-${pkgver}.tar.xz)
+md5sums=('03588159bf4faab9079849c8d709acc6')
 
 build() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
-
-  patch -Np1 -i ${srcdir}/libpng14.patch
+  cd libgd-${pkgver}
   ./configure --prefix=/usr --without-xpm
   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"
 }

Deleted: libpng14.patch
===================================================================
--- libpng14.patch	2013-07-04 03:57:29 UTC (rev 189651)
+++ libpng14.patch	2013-07-04 04:14:50 UTC (rev 189652)
@@ -1,12 +0,0 @@
-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