# Copyright 2026 SrcUX contributors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python3_{13..14} ) inherit meson python-single-r1 DESCRIPTION="Unified Wayfire inspection and control with wf-info and wf-ctrl compatibility" HOMEPAGE="https://www.hedronfire.com/" SRC_URI="https://www.hedronfire.com/distfiles/wfctl-0.2.0-r1.tar.gz" S="${WORKDIR}/wfctl-0.2.0-r1" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" RESTRICT="mirror" REQUIRED_USE="${PYTHON_REQUIRED_USE}" RDEPEND=" >=gui-wm/wayfire-0.11.0-r68 ${PYTHON_DEPS} !gui-apps/wf-info !gui-apps/wf-ctrl " BDEPEND="${PYTHON_DEPS}" src_install() { meson_src_install python_fix_shebang "${ED}/usr/bin/wfctl" # The build installs its docs unversioned; keep them in the versioned dir. if [[ -d ${ED}/usr/share/doc/${PN} ]]; then mkdir -p "${ED}/usr/share/doc/${PF}" || die mv "${ED}/usr/share/doc/${PN}"/* "${ED}/usr/share/doc/${PF}/" || die rmdir "${ED}/usr/share/doc/${PN}" || die fi } pkg_postinst() { einfo "wfctl owns the wf-info and wf-ctrl compatibility commands." einfo "Use ipc, ipc-rules, stipc, wm-actions, vswitch and grid plugins." einfo "Remove wfctl, wf-info and wf-ctrl from the next session plugin list." }