summaryrefslogtreecommitdiff
path: root/community/surf
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-02-25 23:15:06 +0000
committerroot <root@rshg054.dnsready.net>2012-02-25 23:15:06 +0000
commite4a5730eb358cb0d78bc022204ddccac068c2bf2 (patch)
tree8dc9d2ac6b1313cb68be1a6c8b51500397f8b225 /community/surf
parent299e917c17619f800f0c21cf43209065b608223f (diff)
Sat Feb 25 23:15:06 UTC 2012
Diffstat (limited to 'community/surf')
-rw-r--r--community/surf/PKGBUILD13
-rw-r--r--community/surf/surf-0.4.1-link-xlib.patch28
2 files changed, 37 insertions, 4 deletions
diff --git a/community/surf/PKGBUILD b/community/surf/PKGBUILD
index 9929db995..ae6a57759 100644
--- a/community/surf/PKGBUILD
+++ b/community/surf/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 54600 2011-08-20 20:14:06Z lfleischer $
+# $Id: PKGBUILD 66413 2012-02-24 15:52:35Z lfleischer $
# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
# Contributor: Pierre Chapuis <catwell at archlinux dot us>
# Contributor: Ray Kohler <ataraxia937 at gmail dot com>
@@ -6,7 +6,7 @@
pkgname=surf
pkgver=0.4.1
-pkgrel=3
+pkgrel=4
pkgdesc="A simple web browser based on WebKit/GTK+."
arch=('i686' 'x86_64')
url='http://surf.suckless.org/'
@@ -17,15 +17,20 @@ optdepends=('dmenu: URL-bar'
makedepends=('pkgconfig')
install='surf.install'
source=("http://dl.suckless.org/${pkgname}/${pkgname}-${pkgver}.tar.gz"
- 'config.h')
+ 'config.h'
+ 'surf-0.4.1-link-xlib.patch')
md5sums=('28ac7a6d193d25844aa6b1db77fcbafa'
- 'a1d40e130189343a74f83166410f35d7')
+ 'a1d40e130189343a74f83166410f35d7'
+ '475fe2b51802aba40ad9cd6b75d550ed')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
cp "${srcdir}/config.h" config.h
+ # build fix from upstream (http://hg.suckless.org/surf/rev/2ea243e2ca82)
+ patch -p1 -i ../surf-0.4.1-link-xlib.patch
+
sed -i 's/CPPFLAGS =/CPPFLAGS +=/g' config.mk
sed -i 's/CFLAGS =/CFLAGS +=/g' config.mk
sed -i 's/LDFLAGS =/LDFLAGS +=/g' config.mk
diff --git a/community/surf/surf-0.4.1-link-xlib.patch b/community/surf/surf-0.4.1-link-xlib.patch
new file mode 100644
index 000000000..25949d744
--- /dev/null
+++ b/community/surf/surf-0.4.1-link-xlib.patch
@@ -0,0 +1,28 @@
+
+diff -r 71388899ac09 -r 2ea243e2ca82 config.mk
+--- a/config.mk Tue Jun 08 09:06:10 2010 +0200
++++ b/config.mk Sun Nov 20 16:06:38 2011 +0100
+@@ -7,13 +7,15 @@
+ PREFIX = /usr/local
+ MANPREFIX = ${PREFIX}/share/man
+
+-GTKINC=$(shell pkg-config --cflags gtk+-2.0 webkit-1.0)
+-GTKLIB=$(shell pkg-config --libs gtk+-2.0 webkit-1.0)
++X11INC = /usr/X11R6/include
++X11LIB = /usr/X11R6/lib
+
++GTKINC = `pkg-config --cflags gtk+-2.0 webkit-1.0`
++GTKLIB = `pkg-config --libs gtk+-2.0 webkit-1.0`
+
+ # includes and libs
+-INCS = -I. -I/usr/include ${GTKINC}
+-LIBS = -L/usr/lib -lc ${GTKLIB} -lgthread-2.0
++INCS = -I. -I/usr/include -I${X11INC} ${GTKINC}
++LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${GTKLIB} -lgthread-2.0
+
+ # flags
+ CPPFLAGS = -DVERSION=\"${VERSION}\"
+
+
+
+