blob: 5bc41521bedf6cc65edbd7c857c660966a1cf369 (
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
|
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the MIT License
EAPI=8
inherit toolchain-funcs
DESCRIPTION="OLED-friendly Matrix rain screensaver for Sway/Wayland"
HOMEPAGE=""
SRC_URI="${P}.tar.gz"
RESTRICT="fetch"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
BDEPEND="
dev-libs/wayland
dev-libs/wayland-protocols
virtual/pkgconfig
"
DEPEND="
dev-libs/wayland
media-libs/mesa[egl(+),gles2(+)]
media-libs/freetype
dev-libs/json-c
"
RDEPEND="
${DEPEND}
gui-apps/swayidle
"
S="${WORKDIR}/${P}"
src_compile() {
emake \
CC="$(tc-getCC)" \
CFLAGS="${CFLAGS}" \
LDFLAGS="${LDFLAGS}" \
WLR_LAYER_SHELL_XML="${S}/wlr-layer-shell-unstable-v1.xml" \
PREFIX="/usr" \
|| die "build failed"
}
src_install() {
dobin oledsaver
insinto /etc
newins oledsaver.conf.default oledsaver.conf
}
pkg_postinst() {
elog "Configuration file installed to /etc/oledsaver.conf"
elog "Run 'oledsaver' in your Sway session to start the screensaver manager."
elog "Requires SWAYSOCK to be set (automatic in Sway sessions)."
}
|