PKGNAME=gcr-4
PKGSEC=libs
PKGDES="Library to display certificates and access key stores (version 4)"
PKGDEP="dconf desktop-file-utils gtk-4 hicolor-icon-theme libgcrypt \
        p11-kit python-3 libsecret gcr-common"
PKGDEP__RETRO="glib libgcrypt p11-kit libsecret gcr-common"
BUILDDEP="gobject-introspection vala"
BUILDDEP__RETRO=""

ABTYPE=meson
MESON_AFTER=(
    '-Dintrospection=true'
    '-Dvapi=true'
    '-Dgtk4=true'
    '-Dgtk_doc=false'
    '-Dcrypto=libgcrypt'
    '-Dssh_agent=true'
    '-Dsystemd=enabled'
)
MESON_AFTER__RETRO=(
    "${MESON_AFTER[@]}"
    '-Dgtk4=false'
    '-Dintrospection=false'
    '-Dvapi=false'
)

PKGBREAK="gcr<=3.41.1-3"

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