46 lines
1.1 KiB
Bash
46 lines
1.1 KiB
Bash
# Copyright 2026 Shin'ya Minazuki
|
|
EAPI=8
|
|
|
|
inherit toolchain-funcs optfeature
|
|
|
|
DESCRIPTION="X windows manipulator"
|
|
HOMEPAGE="https://z3bra.org/glazier/"
|
|
SRC_URI="https://dl.z3bra.org/releases/${P}.tar.bz2"
|
|
|
|
LICENSE="ISC"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
DEPEND="
|
|
x11-libs/libxcb
|
|
x11-libs/libwm
|
|
"
|
|
RDEPEND="${DEPEND}"
|
|
RESTRICT="mirror"
|
|
|
|
src_configure() {
|
|
elog "Populating ${S}/config.mk with new values..."
|
|
echo "CC = $(tc-getCC)" > config.mk
|
|
echo "CFLAGS = -Wall -Wextra -pedantic -g ${CFLAGS}" >> config.mk
|
|
echo "LD = $(tc-getLD)" >> config.mk
|
|
echo "LDFLAGS = -lwm -lxcb-cursor -lxcb-image -lxcb-randr -lxcb" >> config.mk
|
|
echo "PREFIX = ${EPREFIX}/usr" >> config.mk
|
|
echo "MANDIR = ${EPREFIX}/usr/share/man" >> config.mk
|
|
elog "Done."
|
|
}
|
|
|
|
src_compile() {
|
|
emake
|
|
}
|
|
|
|
src_install() {
|
|
# A session isn't installed for this window manager
|
|
# because it's effectively a blank screen where
|
|
# one can't do anything
|
|
emake DESTDIR="${D}" install
|
|
}
|
|
|
|
pkg_postinst() {
|
|
optfeature "keyboard shortcuts" x11-misc/sxhkd
|
|
optfeature "fine-grained window manipulation utilities" x11-misc/wmutils
|
|
}
|