blob: fb6b94b3659f881d4e8d425a70368b07beb585db (
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
|
# 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.5
pkgrel=2
pkgdesc="NetSurf is a free, open source web browser."
url="http://www.netsurf-browser.org"
arch="all"
license="GPL2"
depends=""
depends_dev=""
makedepends="curl-dev libressl-dev doxygen flex bison libwebp-dev lcms2-dev
libmng-dev gperf libglade-dev gtk+-dev libcurl libpng-dev
check-dev libidn-dev libharu-dev librsvg-dev libjpeg-turbo-dev"
install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::http://download.netsurf-browser.org/netsurf/releases/source-full/${pkgname}-all-${pkgver}.tar.gz
netsurf"
builddir="$srcdir"/${pkgname}-all-${pkgver}
prepare() {
default_prepare || return 1
sed 's:-Werror::' -i "$builddir"/libsvgtiny/Makefile \
|| return 1
}
build() {
cd "$builddir"
make PREFIX=/usr TARGET=gtk || return 1
}
package() {
cd "$builddir"
make PREFIX=/usr TARGET=gtk DESTDIR="${pkgdir}" \
install || return 1
mv "$pkgdir/usr/bin/$pkgname" "$pkgdir/usr/bin/$pkgname.elf"
install -Dm755 "$srcdir/netsurf" "$pkgdir/usr/bin/$pkgname"
mkdir -p "$pkgdir"/usr/share/man/man1/
install -Dm644 netsurf/Docs/netsurf-gtk.1 "$pkgdir"/usr/share/man/man1/
mv "$pkgdir"/usr/share/netsurf/:./gtk/res/* \
"$pkgdir"/usr/share/netsurf/ || return 1
rmdir "$pkgdir"/usr/share/netsurf/:./gtk/res \
"$pkgdir"/usr/share/netsurf/:./gtk \
"$pkgdir"/usr/share/netsurf/:. || return 1
}
md5sums="a52270702637273f4ca3ea8b2347115d netsurf-3.5.tar.gz
8e8e6bc15f9a13678a4d2aff0132ba72 netsurf"
sha256sums="09184f8901a30b98b3e37e82d1d723a4f9e000c56b235ea59a9e0bb2d96fb4ed netsurf-3.5.tar.gz
e4eef478cbd90f276b1f3f7db178eabd325d1d3b5f6180e8db578216638535fe netsurf"
sha512sums="a39eb8c11b394e4d5c1164da46d74f283f489057f70c192277d94e511a3716c86474a07a7c80ce602a53e41959f75e82312ad9f5cb365953c24445af4456e1ce netsurf-3.5.tar.gz
5c217e061b9a2b226f920018749bae67d2a1eb3753404e08e9100660aa965e1d69c9425d409f5645e2931f2654805afe8e365fb45c50ff9acf848c79323148af netsurf"
|