PKGNAME=libnma
PKGSEC=libs
PKGDES="NetworkManager GUI client library"
PKGDEP="gcr-3 gtk-4 iso-codes mobile-broadband-provider-info networkmanager"
BUILDDEP="gobject-introspection vala"
BUILDDEP__RETRO=""

ABTYPE=meson
MESON_AFTER=(
    '-Dlibnma_gtk4=true'
    '-Dgcr=true'
    '-Diso_codes=true'
    '-Dmobile_broadband_provider_info=true'
    '-Dld_gc=true'
    '-Dgtk_doc=false'
    '-Dintrospection=true'
    '-Dvapi=true'
)

MESON_AFTER__RETRO=(
    "${MESON_AFTER[@]}"
    '-Dintrospection=false'
    '-Dvapi=false'
)

PKGBREAK="network-manager-applet<=1.8.24"
PKGREP="network-manager-applet<=1.8.24"

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