summaryrefslogtreecommitdiff
path: root/x11-misc/exit-options/exit-options-20250830.ebuild
blob: c345e709f27010437c1725527807c7c6e9698ee6 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
COMMIT="d3a0c92d9ca232860680165271bc78be111c6961"

inherit cmake xdg

DESCRIPTION="Pop-up with exit options for MX Fluxbox"
HOMEPAGE="https://github.com/MX-Linux/exit-options"
SRC_URI="https://github.com/MX-Linux/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${COMMIT}"

LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64"

DEPEND="
	dev-qt/qtbase:6[gui,widgets]
	dev-qt/qttools:6[linguist]
"
RDEPEND="${DEPEND}"
BDEPEND="
	dev-build/cmake
	dev-build/ninja
	virtual/pkgconfig
"

PATCHES=(
	"${FILESDIR}"/"${PN}"-cmake.patch
)

src_configure() {
	local mycmakeargs=(
		-DCMAKE_BUILD_TYPE=Release
		-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
		-DNO_DEBUG_ON_CONSOLE=ON
	)

	cmake_src_configure
}

src_install() {
	cmake_src_install

	einstalldocs

	# debian/install ...

	insinto /usr/share/"${PN}"/conf
	doins configs_alt/*

	insinto /etc/
	doins "${PN}".conf

	insinto /usr/share/"${PN}"
	doins -r icons/*
}

pkg_postinst() {
	xdg_pkg_postinst
}

pkg_postrm() {
	xdg_pkg_postrm
}