Files
guru/gui-libs/qml-niri/qml-niri-0.2.0.ebuild
2026-05-31 17:50:53 +01:00

31 lines
667 B
Bash

# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="A QML plugin for niri"
HOMEPAGE="https://github.com/imiric/qml-niri"
SRC_URI="https://github.com/imiric/qml-niri/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
DEPEND="dev-qt/qtbase[gui]
dev-qt/qtdeclarative
"
RDEPEND="${DEPEND}"
PATCHES=( "${FILESDIR}/rpath-fix.patch" )
src_install() {
mkdir -p "${D}/usr/lib64/qt6/qml"
cp -r "${WORKDIR}/${P}_build/Niri" "${D}/usr/lib64/qt6/qml/" || die
}
src_postinst() {
elog "Make sure QML_IMPORT_PATH contains /usr/lib64/qt6/qml"
}