summaryrefslogtreecommitdiff
path: root/extra/libproxy/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/libproxy/PKGBUILD')
-rw-r--r--extra/libproxy/PKGBUILD13
1 files changed, 10 insertions, 3 deletions
diff --git a/extra/libproxy/PKGBUILD b/extra/libproxy/PKGBUILD
index 5b1367bd5..ca6d9e2d0 100644
--- a/extra/libproxy/PKGBUILD
+++ b/extra/libproxy/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=libproxy
pkgver=0.4.7
-pkgrel=1
+pkgrel=2
pkgdesc="A library that provides automatic proxy configuration management"
arch=(i686 x86_64)
license=('LGPL')
@@ -14,12 +14,19 @@ optdepends=('kdelibs: KDE configuration module'
'python2: Python bindings')
makedepends=('cmake' 'networkmanager' 'automoc4' 'python2' 'kdelibs' 'perl')
url="http://libproxy.googlecode.com"
-source=(http://libproxy.googlecode.com/files/${pkgname}-${pkgver}.tar.gz)
+source=(http://libproxy.googlecode.com/files/${pkgname}-${pkgver}.tar.gz
+ libproxy-0.4.7-unistd.patch)
options=('!libtool')
-md5sums=('509e03a488a61cd62bfbaf3ab6a2a7a5')
+md5sums=('509e03a488a61cd62bfbaf3ab6a2a7a5'
+ 'e90c03f296e553ace347b46f4fea3625')
build() {
cd "${srcdir}"
+
+ # Fix build with GCC 4.7 (patch from Fedora)
+ patch -d "${pkgname}-${pkgver}" -Np1 -i \
+ "${srcdir}/libproxy-0.4.7-unistd.patch"
+
mkdir build
cd build
cmake ../${pkgname}-${pkgver} \