# Maintainer: William Pitcock <nenolod@dereferenced.org>
# NOTE: do not move this package to community, it is seriously broken rendering many websites.
pkgname=epiphany
pkgver=3.24.2
pkgrel=2
pkgdesc="GNOME web browser"
url="https://wiki.gnome.org/Apps/Web"
arch="all"
license="GPL"
depends=""
makedepends="gnome-desktop-dev webkit2gtk-dev gcr-dev json-glib-dev libsoup-dev libnotify-dev libsecret-dev libxslt-dev docbook-xml docbook-xsl libxml2-utils itstool intltool"
install=""
subpackages="$pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/epiphany/3.24/epiphany-$pkgver.tar.xz"
builddir="$srcdir/epiphany-$pkgver"

# XXX - testsuite requires an X server
options="!check"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

check() {
	cd "$builddir"
	make check
}

sha512sums="f1871d92642b5ca278c6d9228d78b79aeb4284ac04f7f480f4d03bb2717fd872e4fd6ef5827ed86fdf08c91efa63ab789aedb9385948bd0f2bd4d89b5454c866  epiphany-3.24.2.tar.xz"
