blob: d3c0d21a13ab24e2e70a827159bc9e2e9fcd7dd3 (
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
|
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
ZIG_OPTIONAL="1"
inherit zig
DESCRIPTION="OXWM — DWM but better. Dynamic window manager written in Zig with Lua config"
HOMEPAGE="https://github.com/tonybanters/oxwm"
SRC_URI="https://github.com/tonybanters/oxwm/archive/4670ae7.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0.15"
KEYWORDS="~amd64"
RDEPEND="
x11-libs/libX11
x11-libs/libXft
x11-libs/libXinerama
media-libs/fontconfig
media-libs/freetype
dev-lang/lua
"
DEPEND="${RDEPEND}"
BDEPEND="
${RDEPEND}
dev-lang/zig
virtual/pkgconfig
"
S="${WORKDIR}/oxwm-4670ae7"
src_configure() {
zig_src_configure
}
src_compile() {
zig_src_compile -Doptimize=ReleaseSmall
}
src_install() {
zig_src_install
insinto /usr/share/xsessions
doins "${S}/resources/oxwm.desktop" 2>/dev/null || true
insinto /usr/share/oxwm
doins -r "${S}/templates"
doman "${S}/resources/oxwm.1" 2>/dev/null || true
}
pkg_postinst() {
elog "OXWM ${PV} installed successfully!"
elog
elog "First launch will create ~/.config/oxwm/config.lua"
elog "Or manually run: oxwm --init"
elog
elog "Reload config anytime with: Super + Shift + R"
}
|