PKGNAME=udisks-2
PKGSEC=admin
PKGDEP="acl libatasmart lvm2 polkit systemd glib glibc util-linux libblockdev \
        libconfig libstoragemgmt libiscsi bcache-tools parted gptfdisk \
        dosfstools libgudev"
PKGDEP__RETRO=" \
        acl libatasmart lvm2 polkit systemd glib util-linux libblockdev \
        libconfig parted gptfdisk dosfstools libgudev"
# Note: gtk-doc required for re-configuration.
BUILDDEP="docbook-xsl gobject-introspection gtk-doc intltool itstool python-3"
BUILDDEP__RETRO="docbook-xsl gtk-doc intltool itstool"
PKGDES="Utilities and libraries to access and manipulate storage devices"

AUTOTOOLS_AFTER=(
    '--with-systemdsystemunitdir=/usr/lib/systemd/system'
    '--localstatedir=/var'
    '--libexecdir=/usr/libexec'
    '--enable-btrfs'
    '--enable-lvm2'
    '--enable-lsm'
    '--enable-smart'
    '--disable-gtk-doc'
    '--disable-iscsi'
)
AUTOTOOLS_AFTER__RETRO=(
    "${AUTOTOOLS_AFTER[@]}"
    # Note: libstoragemgmt
    '--disable-lsm'
)

MAKE_AFTER=('bash_completiondir=/usr/share/bash-completion/completions')

# Needed by Afterglow, whereas FAIL_ARCH defaults to mainline-only.
FAIL_ARCH="!(mainline|retro)"
