# Template file for 'accountsservice'
pkgname=accountsservice
version=0.6.32
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=6c03bc431ac9af4ac68c531a35fc97be0a410db65bf3ff24648760a0ddc28526
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}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		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
	}
}
