mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-19 08:29:37 +00:00
44 lines
948 B
Bash
44 lines
948 B
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit toolchain-funcs
|
|
|
|
DESCRIPTION="Tiling window manager based on binary space partitioning"
|
|
HOMEPAGE="https://github.com/baskerville/bspwm/"
|
|
SRC_URI="https://github.com/baskerville/bspwm/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="BSD-2"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~riscv ~x86"
|
|
|
|
DEPEND="
|
|
x11-libs/libxcb:=
|
|
x11-libs/xcb-util
|
|
x11-libs/xcb-util-keysyms
|
|
x11-libs/xcb-util-wm
|
|
"
|
|
RDEPEND="${DEPEND}
|
|
x11-misc/sxhkd
|
|
"
|
|
|
|
src_compile() {
|
|
emake CC="$(tc-getCC)"
|
|
}
|
|
|
|
src_install() {
|
|
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" DOCPREFIX="${EPREFIX}/usr/share/doc/${PF}" install
|
|
|
|
exeinto /etc/X11/Sessions
|
|
newexe "${FILESDIR}"/${PN}-session ${PN}
|
|
|
|
insinto /usr/share/xsessions
|
|
doins contrib/freedesktop/bspwm.desktop
|
|
|
|
insinto /etc/xdg/sxhkd
|
|
doins examples/sxhkdrc
|
|
|
|
dodoc -r examples
|
|
docompress -x /usr/share/doc/${PF}/examples
|
|
}
|