# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=gnome-control-center
pkgver=3.26.0
pkgrel=1
pkgdesc="GNOME control center"
url="http://www.gnome.org/"
# limited by gnome-online-accounts
arch="all !armhf !s390x"
license="GPL"
makedepends="clutter-dev clutter-gtk-dev

	gnome-desktop-dev
	gnome-settings-daemon-dev
	gnome-online-accounts-dev
	grilo-dev
	libgtop-dev
	gnome-bluetooth-dev

	colord-gtk-dev
	samba-dev
	accountsservice-dev
	libpwquality-dev

	networkmanager-dev network-manager-applet-dev
	modemmanager-dev

	krb5-dev

	itstool
	libxml2-utils
	libxslt

	docbook-xml docbook-xsl

	$depends_dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz
	wayland.patch"
builddir="$srcdir/$pkgname-$pkgver"

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

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

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

sha512sums="c0656b072b1918e13447eaca13a1ea1b997c37faa30952d3ab48109077a570768d5fd57479817558ce6f34105903b763553900e3db61cef53f5c756cd86b395a  gnome-control-center-3.26.0.tar.xz
3f17e2f00798e4d2a99a1d77c66ee5be29501417ea4b4c65387f24d8c27700c36e2f5fb2b476c3c0c88b18b497f48e7e2c09a4baadb6b532b7ecc112f504db48  wayland.patch"
