summaryrefslogtreecommitdiff
path: root/gui-apps/hyprsunset/hyprsunset-0.3.3.ebuild
blob: 9a93520541ca42dced95933813925743d46d0f4a (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
# Copyright 2024-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

DESCRIPTION="An application to enable a blue-light filter on Hyprland"
HOMEPAGE="https://wiki.hypr.land/Hypr-Ecosystem/hyprsunset"

if [[ "${PV}" = *9999 ]]; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/hyprwm/${PN^}.git"
else
	SRC_URI="https://github.com/hyprwm/${PN^}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
	KEYWORDS="~amd64"
fi

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

LICENSE="BSD"
SLOT="0/$(ver_cut 1-2)"

RDEPEND="
	dev-libs/wayland
	>=gui-libs/hyprutils-0.2.3:=
	gui-wm/hyprland:=
"

DEPEND="
	${RDEPEND}
	>=dev-libs/hyprland-protocols-0.4.0
	dev-libs/wayland-protocols
	>=dev-util/hyprwayland-scanner-0.4.0
	dev-util/wayland-scanner
"

BDEPEND="
	virtual/pkgconfig
"