abinfo "Saving BLDDIR and PKGDIR ..."
export OLD_PKGDIR="$PKGDIR"
export PKGDIR="$SRCDIR"/abdist-nosd
export OLD_BLDDIR="$BLDDIR"
export BLDDIR="$SRCDIR"/abbuild-nosd

abinfo "Building kmscon without multiseat support ..."
MESON_AFTER=("-Dmulti_seat=disabled" "${MESON_AFTER[@]}")
build_meson_configure
build_meson_build
build_meson_install

abinfo "Installing multiseat-less kmscon ..."
install -Dvm755 "$PKGDIR"/usr/libexec/kmscon/kmscon \
	"$OLD_PKGDIR"/usr/libexec/kmscon/kmscon-no-multiseat

abinfo "Restoring PKGDIR ..."
export PKGDIR="$OLD_PKGDIR"

abinfo "Installing kmsconvt@.service as system-alternatives ..."
install -Dvm644 "$PKGDIR"/usr/lib/systemd/system/kmsconvt@.service \
    "$PKGDIR"/usr/lib/systemd/system-alternatives/autovt-kmscon.service
