# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=gnome-online-accounts
pkgver=3.26.0
pkgrel=0
pkgdesc="client for GNOME web services"
url="http://www.gnome.org/"
# limited by webkit2gtk
arch="x86 x86_64 ppc64le aarch64"
license="GPL"
makedepends="gnome-desktop-dev libxslt itstool libxml2-utils 
	webkit2gtk-dev json-glib-dev rest-dev libsecret-dev 
	docbook-xsl docbook-xml"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz"
builddir="$srcdir/$pkgname-$pkgver"

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

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

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

sha512sums="ce11fe02e77c8000be869cefdc95d1a053fe1ae00150b15916492ad2a93f2f8884e50d0e8f7ca5331ab61e6757a7728cd88408d0239295e4338a415aabc4bca2  gnome-online-accounts-3.26.0.tar.xz"
