[arch-commits] Commit in agg/trunk (PKGBUILD autotools.patch)

Andrea Scarpino andrea at nymeria.archlinux.org
Fri Mar 14 08:12:33 UTC 2014


    Date: Friday, March 14, 2014 @ 09:12:33
  Author: andrea
Revision: 107180

upgpkg: agg 2.5-5

Fix build; rebuild old package

Added:
  agg/trunk/autotools.patch
Modified:
  agg/trunk/PKGBUILD

-----------------+
 PKGBUILD        |   21 ++++++++++++++-------
 autotools.patch |   11 +++++++++++
 2 files changed, 25 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-03-14 05:16:18 UTC (rev 107179)
+++ PKGBUILD	2014-03-14 08:12:33 UTC (rev 107180)
@@ -3,7 +3,7 @@
 
 pkgname=agg
 pkgver=2.5
-pkgrel=4
+pkgrel=5
 pkgdesc="A High Quality Rendering Engine for C++"
 arch=('i686' 'x86_64')
 url="http://www.antigrain.com/"
@@ -14,15 +14,22 @@
 options=('!makeflags')
 source=("http://www.antigrain.com/${pkgname}-${pkgver}.tar.gz"
         agg-2.4-depends.patch
-        agg-2.5-pkgconfig.patch)
+        agg-2.5-pkgconfig.patch
+        autotools.patch)
 md5sums=('0229a488bc47be10a2fee6cf0b2febd6'
          '22f8e48c137d25038181c86d5e40b110'
-         '43a19a7b1564c591e56c8d09a0fd8da5')
+         '43a19a7b1564c591e56c8d09a0fd8da5'
+         'e042231955a8daee5f3cdfa4ee4e866a')
 
+prepare() {
+  cd ${pkgname}-${pkgver}
+  patch -p1 -i "${srcdir}/agg-2.4-depends.patch"
+  patch -p1 -i "${srcdir}/agg-2.5-pkgconfig.patch"
+  patch -p0 -i "${srcdir}/autotools.patch"
+}
+
 build() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
-  patch -Np1 -i "${srcdir}/agg-2.4-depends.patch"
-  patch -Np1 -i "${srcdir}/agg-2.5-pkgconfig.patch"
+  cd ${pkgname}-${pkgver}
   sh ./autogen.sh
   ./configure --prefix=/usr --disable-static
   make
@@ -29,6 +36,6 @@
 }
 
 package() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd ${pkgname}-${pkgver}
   make DESTDIR="${pkgdir}" install
 }

Added: autotools.patch
===================================================================
--- autotools.patch	                        (rev 0)
+++ autotools.patch	2014-03-14 08:12:33 UTC (rev 107180)
@@ -0,0 +1,11 @@
+--- configure.in~	2013-02-22 09:30:00.000000000 -0600
++++ configure.in	2013-02-22 09:30:49.030777571 -0600
+@@ -8,7 +8,7 @@
+ AC_PROG_CC
+ AC_PROG_CXX
+ AC_ISC_POSIX
+-AM_C_PROTOTYPES
++#AM_C_PROTOTYPES
+ if test "x$U" != "x"; then
+   AC_MSG_ERROR(Compiler not ANSI compliant)
+ fi




More information about the arch-commits mailing list