void-packages/srcpkgs/accountsservice/template

55 lines
1.7 KiB
Bash

# Template file for 'accountsservice'
pkgname=accountsservice
version=0.6.50
revision=1
build_style=gnu-configure
configure_args="--disable-static --disable-systemd
$(vopt_enable gir introspection) ac_cv_file__etc_redhat_release=no
ac_cv_file__etc_debian_version=no"
hostmakedepends="glib-devel intltool pkg-config
$(vopt_if gir 'gobject-introspection')"
makedepends="polkit-devel"
short_desc="D-Bus interfaces for querying and manipulating user account information"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-3.0-or-later"
homepage="http://cgit.freedesktop.org/accountsservice/"
distfiles="${FREEDESKTOP_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
checksum=035928f5dea46f2220657e0bd669bc7fac45165b700c0a81b2b66ff2c3dbc74a
make_dirs="
/var/lib/AccountsService/users 755 root root
/var/lib/AccountsService/icons 755 root root"
# Package build options
build_options="gir"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
*-musl)
# Patch to check for /var/log/wtmp instead of /var/log/utx.log
sed -i configure -e "s;utx\.log;wtmp;g"
configure_args+=" ac_cv_file__var_log_utx_log=yes"
# FIXME: if ac_cv_header_utmpx_h=no is set, the function
# wtmp_helper_update_login_frequencies() is not defined.
# configure_args+=" ac_cv_header_utmpx_h=no"
;;
esac
}
accountsservice-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
vmove usr/share/gtk-doc
}
}