x11-wm/oxwm: new package, add 9999 live ebuild

Dynamic window manager written in Zig with Lua configuration and hot-reload.

Signed-off-by: Theron York <theron.york@cloudnuke.org>
This commit is contained in:
Theron York
2026-04-26 23:41:18 -05:00
parent 5513fb87ad
commit 97425a0461
2 changed files with 77 additions and 0 deletions

11
x11-wm/oxwm/metadata.xml Normal file
View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>theron.york@cloudnuke.org</email>
<name>Theron York</name>
</maintainer>
<upstream>
<remote-id type="github">tonybanters/oxwm</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,66 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
ZIG_OPTIONAL="1"
inherit git-r3 zig
DESCRIPTION="OXWM — DWM but better. Dynamic window manager written in Zig with Lua config"
HOMEPAGE="https://github.com/tonybanters/oxwm"
EGIT_REPO_URI="https://github.com/tonybanters/oxwm.git"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
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
"
src_unpack() {
git-r3_src_unpack
}
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 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"
}