[arch-commits] Commit in d4x/trunk (PKGBUILD d4x-gtkurl.patch)

Hugo Doria hugo at archlinux.org
Wed Jul 23 16:19:35 UTC 2008


    Date: Wednesday, July 23, 2008 @ 12:19:35
  Author: hugo
Revision: 6074

upgpkg: d4x 2.5.7.1-2
    d4x-gtkurl.patch added. This Fix FS#10646

Added:
  d4x/trunk/d4x-gtkurl.patch
Modified:
  d4x/trunk/PKGBUILD

------------------+
 PKGBUILD         |   18 +++++++++++-------
 d4x-gtkurl.patch |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 60 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2008-07-23 15:13:27 UTC (rev 6073)
+++ PKGBUILD	2008-07-23 16:19:35 UTC (rev 6074)
@@ -1,22 +1,26 @@
 # $Id$
-# Maintainer: dorphell <dorphell at archlinux.org>
+# Maintainer: Hugo Doria <hugo at archlinux.org>
+
 pkgname=d4x
 pkgver=2.5.7.1
-pkgrel=1
+pkgrel=2
 pkgdesc="A GUI XFree86 program for downloading files"
-arch=(i686 x86_64)
+arch=('i686' 'x86_64')
 depends=('esd' 'gtk2' 'openssl<=0.9.8' 'alsa-lib' 'libstdc++5' 'audiofile') 
-source=(http://d4x.krasu.ru/files/$pkgname-$pkgver.tar.bz2)
+source=(http://d4x.krasu.ru/files/${pkgname}-${pkgver}.tar.bz2 d4x-gtkurl.patch)
 url="http://www.krasu.ru/soft/chuchelo/"
 license=('PerlArtistic')
 makedepends=('boost')
 conflicts=('downloaderx')
 replaces=('downloaderx')
-md5sums=('68d6336c3749a7caabb0f5a5f84f4102')
+md5sums=('68d6336c3749a7caabb0f5a5f84f4102' '3639f6d3fb7253a50a085c0b1037268b')
 
 build() {
-    cd $startdir/src/$pkgname-${pkgver}
+    cd ${srcdir}/${pkgname}-${pkgver}
+    
+    patch -Np1 < ${srcdir}/d4x-gtkurl.patch || return 1
+    
     ./configure --prefix=/usr
     make || return 1
-    make prefix=$startdir/pkg/usr install
+    make prefix=${pkgdir}/usr install
 }

Added: d4x-gtkurl.patch
===================================================================
--- d4x-gtkurl.patch	                        (rev 0)
+++ d4x-gtkurl.patch	2008-07-23 16:19:35 UTC (rev 6074)
@@ -0,0 +1,49 @@
+diff -aur d4x-2.5.7.1/configure d4x-2.5.7.1/configure
+--- d4x-2.5.7.1/configure	2006-04-12 18:48:29.000000000 +0200
++++ d4x-2.5.7.1/configure	2008-06-03 23:44:14.000000000 +0200
+@@ -18396,12 +18396,6 @@
+ #define _REENTRANT
+ _ACEOF
+ 
+-
+-cat >>confdefs.h <<\_ACEOF
+-#define GTK_DISABLE_DEPRECATED
+-_ACEOF
+-
+-
+ cat >>confdefs.h <<\_ACEOF
+ #define _FILE_OFFSET_BITS 64
+ _ACEOF
+diff -aur d4x-2.5.7.1/configure.ac d4x-2.5.7.1/configure.ac
+--- d4x-2.5.7.1/configure.ac	2005-11-05 00:35:38.000000000 +0100
++++ d4x-2.5.7.1/configure.ac	2008-06-03 23:43:01.000000000 +0200
+@@ -298,7 +298,6 @@
+ 
+ # Other needed defines
+ AC_DEFINE(_REENTRANT, , [Enable reenrant code of glibc])
+-AC_DEFINE(GTK_DISABLE_DEPRECATED, , [Enable warnings about deprecated functions usage])
+ AC_DEFINE(_FILE_OFFSET_BITS, 64, [To support files over 2GB])
+ 
+ # Prepare all requiered flags
+diff -aur d4x-2.5.7.1/main/addr.cc d4x-2.5.7.1/main/addr.cc
+--- d4x-2.5.7.1/main/addr.cc	2006-04-05 20:19:36.000000000 +0200
++++ d4x-2.5.7.1/main/addr.cc	2008-06-03 23:42:00.000000000 +0200
+@@ -181,7 +181,6 @@
+ 			file=path.substr(p+1);
+ 			path=path.substr(0,p);
+ 		};
+-		path=d4x::Path("/")/path;
+ 		
+ 		if (!port)
+ 			port=get_port_by_proto(proto);
+diff -aur d4x-2.5.7.1/main/face/list.cc d4x-2.5.7.1/main/face/list.cc
+--- d4x-2.5.7.1/main/face/list.cc	2006-03-20 01:29:41.000000000 +0100
++++ d4x-2.5.7.1/main/face/list.cc	2008-06-03 23:42:18.000000000 +0200
+@@ -8,7 +8,6 @@
+  *	but WITHOUT ANY WARRANTY; without even the implied warranty of
+  *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+  */
+-#define GTK_DISABLE_DEPRECATED
+ 
+ #include <stdio.h>
+ #include <gtk/gtk.h>





More information about the arch-commits mailing list