# Contributor: Sören Tempel # Contributor: ScrumpyJack # Maintainer: ScrumpyJack pkgname=netsurf pkgver=3.9 pkgrel=0 pkgdesc="NetSurf is a free, open source web browser." url="http://www.netsurf-browser.org" arch="all !s390x !mips !mips64" # librsvg 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"