udisks2: add systemd build option (on by default).
This commit is contained in:
parent
d0efeb10f8
commit
a105c2c07f
1 changed files with 13 additions and 4 deletions
|
@ -1,14 +1,14 @@
|
|||
# Template file for 'udisks2'
|
||||
pkgname=udisks2
|
||||
version=2.1.3
|
||||
revision=1
|
||||
revision=2
|
||||
wrksrc="udisks-${version}"
|
||||
build_style=gnu-configure
|
||||
configure_args="--disable-static --with-udevdir=/usr/lib/udev
|
||||
--with-systemdsystemunitdir=/usr/lib/systemd/system"
|
||||
hostmakedepends="pkg-config intltool libxslt docbook-xsl glib-devel"
|
||||
makedepends="acl-devel device-mapper-devel liblvm2app-devel libparted-devel
|
||||
libatasmart-devel polkit-devel libgudev-devel sg3_utils-devel systemd-devel"
|
||||
libatasmart-devel polkit-devel libgudev-devel sg3_utils-devel"
|
||||
make_dirs="/var/lib/udisks2 0750 root root"
|
||||
short_desc="Disk Management Service, version 2"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
|
@ -18,12 +18,14 @@ distfiles="http://udisks.freedesktop.org/releases/udisks-${version}.tar.bz2"
|
|||
checksum=5cc92fd651ee49a7888f90d091282b949afc629b31fdb34e187208750720632d
|
||||
|
||||
# Package build options
|
||||
build_options="gir"
|
||||
build_options="gir systemd"
|
||||
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.
|
||||
if [ -z "$CROSS_BUILD" ]; then
|
||||
build_options_default="gir"
|
||||
build_options_default+=" gir"
|
||||
fi
|
||||
|
||||
if [ "$build_option_gir" ]; then
|
||||
|
@ -33,6 +35,13 @@ else
|
|||
configure_args+=" --disable-introspection"
|
||||
fi
|
||||
|
||||
if [ "$build_option_systemd" ]; then
|
||||
configure_args+=" --enable-systemd"
|
||||
makedepends+=" systemd-devel"
|
||||
else
|
||||
configure_args+=" --disable-systemd"
|
||||
fi
|
||||
|
||||
udisks2-devel_package() {
|
||||
depends="libglib-devel ${sourcepkg}>=${version}_${revision}"
|
||||
short_desc+=" - development files"
|
||||
|
|
Loading…
Reference in a new issue