edbuilds/x11-wm/cwm/cwm-7.8.1.ebuild
2026-01-28 16:42:52 +01:00

43 lines
826 B
Bash

# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop toolchain-funcs
DESCRIPTION="Linux port of the OpenBSD calm window manager"
HOMEPAGE="https://git.linuxposting.xyz/afiw/cwm"
SRC_URI="https://git.linuxposting.xyz/afiw/cwm/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="ISC"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
dev-libs/libbsd
x11-libs/libX11
x11-libs/libXft
x11-libs/libXrandr
"
DEPEND="${RDEPEND}"
BDEPEND="
app-alternatives/yacc
virtual/pkgconfig
"
S="${WORKDIR}/${PN}"
src_compile() {
emake CC="$(tc-getCC)" PKG_CONFIG="$(tc-getPKG_CONFIG)"
}
src_install() {
dobin cwm
doman cwm.1
doman cwmrc.5
make_session_desktop ${PN} ${PN}
}
pkg_postinst() {
einfo 'The default location of the configuration file has changed, see cwmrc(5)'
}