# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=gnome-session
pkgver=3.26.0
pkgrel=0
pkgdesc="GNOME session manager"
url="http://www.gnome.org/"
arch="all !aarch64 !armhf"
license="GPL"
depends="gnome-shell"
makedepends="gnome-settings-daemon-dev libsm-dev 
	consolekit2-dev itstool libxslt libxml2-utils json-glib-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz
	no-rpmatch.patch"
builddir="$srcdir/$pkgname-$pkgver"

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

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

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

sha512sums="05ba2465dee4b23d4cf758c15b7a682207fbc50039d95a60c37051cfa31707dc6737bcbf809812b429cb7ce03bf340d30e66916a579677586b3e531c862a6819  gnome-session-3.26.0.tar.xz
0d6057cc47f3494050cf02f55b887ae0fea2b405fe3585b412f91c79dafaab77a4d3da2d77fa65bd43a7a9a77b83c11e78f68af659378f3f62f857ca1a86c6de  no-rpmatch.patch"
