PKGNAME=libgusb
PKGDES="GObject wrapper for libusb1"
PKGSEC=libs
PKGDEP="systemd libusb glib json-glib"
BUILDDEP="gobject-introspection vala intltool"
BUILDDEP__RETRO="intltool"

ABTYPE=meson
MESON_AFTER=(
    '-Dtests=false'
    '-Dvapi=true'
    '-Ddocs=false'
    '-Dintrospection=true'
    '-Dumockdev=disabled'
)

# NOTE: Vala API and GObject introspection catalogs are disabled for
# Afterglow.
MESON_AFTER__RETRO=(
    "${MESON_AFTER[@]}"
    '-Dvapi=false'
    '-Dintrospection=false'
)

PKGBREAK="colord<=1.4.4 fwupd<=1.3.10 \
          gnome-multi-writer<=3.32.1 simple-scan<=3.36.6"

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