# Template file for 'accountsservice'
pkgname=accountsservice
version=0.6.35
revision=1
build_style=gnu-configure
configure_args="--disable-static
 --with-systemdsystemunitdir=/usr/lib/systemd/system"
hostmakedepends="pkg-config intltool gobject-introspection"
makedepends="polkit-devel systemd-devel"
short_desc="D-Bus interfaces for querying and manipulating user account information"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://cgit.freedesktop.org/accountsservice/"
license="GPL-3"
distfiles="http://www.freedesktop.org/software/$pkgname/$pkgname-$version.tar.xz"
checksum=65a1c7013c9c6785c7feb710ee940bb297207dabdb93561fdfdd140e0dfd3038
long_desc="
 The accountsservice project provides a set of D-Bus interfaces for
 querying and manipulating user account information and an implementation
 of these interfaces, based on the useradd, usermod and userdel commands."

accountsservice-devel_package() {
	depends="${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.so"
		vmove usr/share/gir-1.0
		vmove usr/share/gtk-doc
	}
}

accountsservice_package() {
	make_dirs="
		/var/lib/AccountsService/users 755 root root
		/var/lib/AccountsService/icons 755 root root"
	pkg_install() {
		vmove all
	}
}