accountsservice: add systemd build option (on by default).
This commit is contained in:
parent
77568ec26c
commit
8891370ec4
1 changed files with 13 additions and 4 deletions
|
@ -1,13 +1,13 @@
|
||||||
# Template file for 'accountsservice'
|
# Template file for 'accountsservice'
|
||||||
pkgname=accountsservice
|
pkgname=accountsservice
|
||||||
version=0.6.37
|
version=0.6.37
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-static
|
configure_args="--disable-static
|
||||||
ac_cv_file__etc_redhat_release=no ac_cv_file__etc_debian_version=no
|
ac_cv_file__etc_redhat_release=no ac_cv_file__etc_debian_version=no
|
||||||
--with-systemdsystemunitdir=/usr/lib/systemd/system"
|
--with-systemdsystemunitdir=/usr/lib/systemd/system"
|
||||||
hostmakedepends="pkg-config intltool glib-devel"
|
hostmakedepends="pkg-config intltool glib-devel"
|
||||||
makedepends="polkit-devel systemd-devel"
|
makedepends="polkit-devel"
|
||||||
make_dirs="
|
make_dirs="
|
||||||
/var/lib/AccountsService/users 755 root root
|
/var/lib/AccountsService/users 755 root root
|
||||||
/var/lib/AccountsService/icons 755 root root"
|
/var/lib/AccountsService/icons 755 root root"
|
||||||
|
@ -19,12 +19,14 @@ distfiles="http://www.freedesktop.org/software/$pkgname/$pkgname-$version.tar.xz
|
||||||
checksum=b0b21136dc9d74a7135fd5ed7fa1a8069efb91bc6ecc1ef8911125433345a5c1
|
checksum=b0b21136dc9d74a7135fd5ed7fa1a8069efb91bc6ecc1ef8911125433345a5c1
|
||||||
|
|
||||||
# Package build options
|
# Package build options
|
||||||
build_options="gir"
|
build_options="gir systemd"
|
||||||
desc_option_gir="Enable support for building gobject introspection data"
|
desc_option_gir="Enable support for building gobject introspection data"
|
||||||
|
desc_option_systemd="Enable support for systemd"
|
||||||
|
|
||||||
|
build_options_default="systemd"
|
||||||
# Disable gir for cross builds.
|
# Disable gir for cross builds.
|
||||||
if [ -z "$CROSS_BUILD" ]; then
|
if [ -z "$CROSS_BUILD" ]; then
|
||||||
build_options_default="gir"
|
build_options_default+=" gir"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$build_option_gir" ]; then
|
if [ "$build_option_gir" ]; then
|
||||||
|
@ -34,6 +36,13 @@ else
|
||||||
configure_args+=" --disable-introspection"
|
configure_args+=" --disable-introspection"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$build_option_systemd" ]; then
|
||||||
|
configure_args+=" --enable-systemd"
|
||||||
|
makedepends+=" systemd-devel"
|
||||||
|
else
|
||||||
|
configure_args+=" --disable-systemd"
|
||||||
|
fi
|
||||||
|
|
||||||
accountsservice-devel_package() {
|
accountsservice-devel_package() {
|
||||||
depends="${sourcepkg}>=${version}_${revision}"
|
depends="${sourcepkg}>=${version}_${revision}"
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
|
|
Loading…
Reference in a new issue