summaryrefslogtreecommitdiff
path: root/community/netsurf/PKGBUILD
blob: b4037127057d87b6855f183811a5fb66ad958028 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Contributor: Paulo Matias <matiasΘarchlinux-br·org>
# Contributor: Georgij Kondratjev <smpuj@bk.ru>
# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>

pkgname=netsurf
pkgver=2.6
pkgrel=1
pkgdesc="Lightweight, fast web browser"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.netsurf-browser.org/"
license=('GPL')
depends=('libmng' 'librsvg' 'curl' 'libglade' 'lcms' 'libjpeg>=7'
	 'libwapcaplet' 'libcss')
makedepends=('re2c' 'libnsbmp' 'libnsgif' 'hubbub')
source=("http://www.netsurf-browser.org/downloads/releases/${pkgname}-${pkgver}-src.tar.gz")
md5sums=('8653789d2ede6dbbfe79882afc7538fc')

build() {
	cd ${srcdir}/${pkgname}

	sed -i 's#GtkNotebookPage#GtkWidget#' gtk/gtk_tabs.c
	sed -i 's#GTK_WIDGET_SET_FLAGS(GTK_WIDGET(g->layout), GTK_CAN_FOCUS);#gtk_widget_set_can_focus(GTK_WIDGET(g->layout), true);#' \
            gtk/gtk_window.c
}

package() {
	cd ${srcdir}/${pkgname}

	make install DESTDIR=${pkgdir} PREFIX=/usr NETSURF_USE_HARU_PDF=NO
}