blob: c4ccf42693e64667a34026ababa124b9b2fab5ae (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=netsurf
pkgver=3.9
pkgrel=0
pkgdesc="NetSurf is a free, open source web browser."
url="http://www.netsurf-browser.org"
arch="all"
license="GPL-2.0"
makedepends="curl-dev openssl-dev doxygen flex bison libwebp-dev lcms2-dev
libmng-dev gperf libglade-dev gtk+3.0-dev libcurl libpng-dev libidn-dev
check-dev libharu-dev librsvg-dev libjpeg-turbo-dev vim"
subpackages="$pkgname-doc"
source="http://download.netsurf-browser.org/netsurf/releases/source-full/netsurf-all-$pkgver.tar.gz
netsurf"
builddir="$srcdir"/$pkgname-all-$pkgver
prepare() {
default_prepare
sed 's:-Werror::' -i "$builddir"/libsvgtiny/Makefile
}
build() {
make \
TARGET=gtk \
NETSURF_GTK_MAJOR=3 \
LIBDIR=lib \
INCLUDEDIR=include \
PREFIX=/usr
}
package() {
make \
TARGET=gtk \
NETSURF_GTK_MAJOR=3 \
LIBDIR=lib \
INCLUDEDIR=include \
DESTDIR="$pkgdir" \
PREFIX=/usr \
install
install -Dm755 "$srcdir/netsurf" "$pkgdir/usr/bin/$pkgname"
install -Dm644 netsurf/docs/netsurf-gtk.1 -t "$pkgdir"/usr/share/man/man1
# Icon
install -Dm644 netsurf/frontends/gtk/res/netsurf.xpm \
"$pkgdir"/usr/share/pixmaps/netsurf.xpm
# Desktop file
install -Dm644 netsurf/frontends/gtk/res/netsurf-gtk.desktop \
"$pkgdir"/usr/share/applications/netsurf.desktop
# Run netsurf, not netsurf-gtk
sed \
-e 's:netsurf-gtk:netsurf:g' \
-e 's:netsurf.png:netsurf:g' \
-i "$pkgdir"/usr/share/applications/netsurf.desktop
}
sha512sums="3223b0a3bc9721ea1a5a81bbabdda11e1d0f63850074a5dea3ea8999e53c92f07228f58befbf10359c028965131426888a8b9595d6c3cd7a5cde33ca256cf987 netsurf-all-3.9.tar.gz
4f6868f377abb1fbade92088bee9a319952c4cee82821ca5b3f892484e0d111f33045c8583f3d069e48af6f3f2fcad43c364daa0f5457b3b013542793ac10fcf netsurf"
|