aboutsummaryrefslogtreecommitdiffstats
path: root/testing/netsurf/APKBUILD
blob: 645a52794f8b7824ca15035f8fe202050ecce395 (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
# 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.6
pkgrel=1
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 libidn-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

	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/
}

md5sums="3a3ee17f090ead06ce665313175497f7  netsurf-3.6.tar.gz
399e93451e79f5471aa16baab48cbb2c  netsurf"
sha256sums="fdde93ab180222bda8e2135dbb52d7cc1b63c66eaa5da74782f1ce6d894df8b1  netsurf-3.6.tar.gz
e0be8ff79d28bf8db392ae413bd27d917505bcaa03d4c834324413817eb26c4a  netsurf"
sha512sums="1b7dcc80efe8e3944e5db7d74da749821adb3ae39700df3efa6ecb347a00e33350e1d56d4139654d50ac41563edf3de52f0eb25bff6490d74144a7970fb6c3b4  netsurf-3.6.tar.gz
a22f945720d3bd8fc27396aea973be1e0b6f7a03bbe438fb48faf680882be46b05fc252b5fe8d55cde0cc11f3647f4ac331dcc330f47ae12a93b327f30a9ad2a  netsurf"