PKGNAME=libsecret
PKGSEC=libs
PKGDEP="glib libgcrypt"
PKGSUG="gnome-keyring"
BUILDDEP="gobject-introspection intltool vala bash-completion libxslt docbook-xsl"
BUILDDEP__RETRO="intltool bash-completion libxslt docbook-xsl"
PKGDES="Library to access the Secret Service API"

MESON_AFTER=(
    '-Dmanpage=true'
    '-Dcrypto=libgcrypt'
    '-Ddebugging=false'
    '-Dvapi=true'
    '-Dgtk_doc=false'
    '-Dintrospection=true'
    '-Dbash_completion=enabled'
    '-Dtpm2=true'
    '-Dpam=true'
)
MESON_AFTER__RETRO=(
    "${MESON_AFTER[@]}"
    '-Dvapi=false'
    '-Dintrospection=false'
    '-Dtpm2=false'
)

# Note: Extra Provides for Spiral (Debian compatibility).
PKGPROV="libsecret-1-0_spiral"

# Note: GNOME Keyring PAM module is now shipped with this package.
PKGBREAK="gnome-keyring<=48.0 bash-completion<=1:2.16.0"
PKGREP="gnome-keyring<=48.0"

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