aboutsummaryrefslogtreecommitdiff
blob: 368f5da6520633c4ca74e06d3ae7e2f6095c5708 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit ecm

DESCRIPTION="Custom desktop menu for Plasma 6"
HOMEPAGE="https://github.com/MatMoul/plasma-containmentactions-customdesktopmenu"
SRC_URI="https://github.com/MatMoul/plasma-containmentactions-customdesktopmenu/archive/refs/tags/v${PV}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
IUSE=""

RDEPEND="
	>=kde-frameworks/extra-cmake-modules-6.0.0
	>=kde-plasma/kdeplasma-addons-6.0.0
	kde-plasma/plasma-workspace
"
DEPEND="${RDEPEND}
"
S="${WORKDIR}/plasma-containmentactions-customdesktopmenu-${PV}/src"

src_install() {
	default
	dodoc "${FILESDIR}/example.config"
	insinto /usr/lib64/qt6/plugins/plasma/containmentactions
	chmod a+x "${WORKDIR}/plasma-containmentactions-customdesktopmenu-${PV}/src_build/bin/plasma/containmentactions/matmoul-customdesktopmenu.so"
	doins "${WORKDIR}/plasma-containmentactions-customdesktopmenu-${PV}/src_build/bin/plasma/containmentactions/matmoul-customdesktopmenu.so"
}

pkg_postinst() {
	elog "To enable this launcher:"
	elog ""
	elog "   Run: kbuildsycoca6"
	elog ""
	elog "   Right click to your desktop and select 'Desktop and Wallpaper' settings."
	elog "   On Mouse Actions, you can now choose Custom Desktop Menu."
	elog ""
	elog "   If new menu is not available, logout/login your session."
	elog ""
	elog "   Configure in: <Right-Click>->'Desktop and Wallpaper' settings->Mouse Actions->Custom Desktop Menu [Config]"
	elog "   See installed doc: example.config"
}