mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-23 05:53:12 -04:00
x11-wm/oxwm:
modified: oxwm-0.11.4.ebuild Signed-off-by: Theron York <theron.york@cloudnuke.org>
This commit is contained in:
@@ -3,15 +3,18 @@
|
|||||||
|
|
||||||
EAPI=8
|
EAPI=8
|
||||||
|
|
||||||
|
ZIG_MIN_VERSION="0.15.0"
|
||||||
|
ZIG_SLOT="0.15"
|
||||||
|
ZIG_INSOURCE_BUILD=1
|
||||||
|
|
||||||
|
inherit zig
|
||||||
|
|
||||||
DESCRIPTION="OXWM — DWM but better. Dynamic window manager written in Zig with Lua config"
|
DESCRIPTION="OXWM — DWM but better. Dynamic window manager written in Zig with Lua config"
|
||||||
HOMEPAGE="https://github.com/tonybanters/oxwm"
|
HOMEPAGE="https://github.com/tonybanters/oxwm"
|
||||||
|
|
||||||
COMMIT="f699f6d1ff9e07cdd3831591bda84400e784b2c1"
|
COMMIT="f699f6d1ff9e07cdd3831591bda84400e784b2c1"
|
||||||
|
|
||||||
SRC_URI="https://codeload.github.com/tonybanters/oxwm/tar.gz/${COMMIT} -> ${P}.tar.gz"
|
SRC_URI="https://codeload.github.com/tonybanters/oxwm/tar.gz/${COMMIT} -> ${P}.tar.gz"
|
||||||
|
|
||||||
S="${WORKDIR}/oxwm-${COMMIT}"
|
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
LICENSE="GPL-3"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="~amd64"
|
KEYWORDS="~amd64"
|
||||||
@@ -19,56 +22,50 @@ KEYWORDS="~amd64"
|
|||||||
RESTRICT="mirror"
|
RESTRICT="mirror"
|
||||||
|
|
||||||
RDEPEND="
|
RDEPEND="
|
||||||
x11-libs/libX11
|
x11-libs/libX11
|
||||||
x11-libs/libXft
|
x11-libs/libXft
|
||||||
x11-libs/libXinerama
|
x11-libs/libXinerama
|
||||||
media-libs/fontconfig
|
media-libs/fontconfig
|
||||||
media-libs/freetype
|
media-libs/freetype
|
||||||
dev-lang/lua
|
dev-lang/lua
|
||||||
"
|
|
||||||
|
|
||||||
DEPEND="
|
|
||||||
${RDEPEND}
|
|
||||||
dev-lang/zig
|
|
||||||
"
|
|
||||||
|
|
||||||
BDEPEND="
|
|
||||||
virtual/pkgconfig
|
|
||||||
"
|
"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
|
||||||
src_unpack() {
|
src_unpack() {
|
||||||
default
|
default
|
||||||
local unpacked_dir
|
local unpacked_dir
|
||||||
unpacked_dir=$(find "${WORKDIR}" -maxdepth 1 -type d -name "oxwm-*" | head -n1) || die "Source folder not found"
|
unpacked_dir=$(find "${WORKDIR}" -maxdepth 1 -type d -name "oxwm-*" | head -n1) \
|
||||||
if [[ "${unpacked_dir}" != "${WORKDIR}/${P}" ]]; then
|
|| die "Source folder not found"
|
||||||
mv "${unpacked_dir}" "${WORKDIR}/${P}" || die "Failed to rename source folder"
|
mv "${unpacked_dir}" "${WORKDIR}/${P}" || die "Failed to rename source folder"
|
||||||
fi
|
|
||||||
S="${WORKDIR}/${P}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
mkdir -p build
|
# Use eclass's configure to set up prefix, libc, etc.
|
||||||
cd build || die
|
zig_src_configure
|
||||||
zig build -Doptimize=ReleaseSmall
|
|
||||||
}
|
}
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
cd build || die
|
# Build in the source tree (forced by ZIG_INSOURCE_BUILD already,
|
||||||
zig build -Doptimize=ReleaseSmall
|
# but explicitly cd there to be safe) with ReleaseSmall.
|
||||||
|
cd "${S}" || die
|
||||||
|
ezig build -Doptimize=ReleaseSmall || die "Build failed"
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
cd build || die
|
# Let eclass install from the build (it will go to zig-out)
|
||||||
zig build install
|
zig_src_install
|
||||||
insinto /usr/share/xsessions
|
|
||||||
doins "${S}/resources/oxwm.desktop" 2>/dev/null || true
|
insinto /usr/share/xsessions
|
||||||
insinto /usr/share/oxwm
|
doins "${S}/resources/oxwm.desktop" 2>/dev/null || true
|
||||||
doins -r "${S}/templates"
|
|
||||||
doman "${S}/resources/oxwm.1" 2>/dev/null || true
|
insinto /usr/share/oxwm
|
||||||
|
doins -r "${S}/templates"
|
||||||
|
|
||||||
|
doman "${S}/resources/oxwm.1" 2>/dev/null || true
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_postinst() {
|
pkg_postinst() {
|
||||||
elog "OXWM installed successfully!"
|
elog "OXWM installed successfully!"
|
||||||
elog "First launch will create ~/.config/oxwm/config.lua"
|
elog "First launch will create ~/.config/oxwm/config.lua"
|
||||||
elog "Or run: oxwm --init"
|
elog "Or run: oxwm --init"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user