summaryrefslogtreecommitdiff
path: root/gui-libs/qml-niri/qml-niri-0.2.1.ebuild
blob: 229fd92a39019f44f12a992b6d7a041a0a77bfc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# 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"
}