Browse Source

Add x11-wm/dwm-9999

master
kske 8 months ago
parent
commit
679a8949c9
Signed by: kske GPG Key ID: 8BEB13EC5DF7EF13
  1. 3
      x11-wm/dwm/Manifest
  2. 58
      x11-wm/dwm/dwm-9999.ebuild
  3. 11
      x11-wm/dwm/files/dwm-session2
  4. 7
      x11-wm/dwm/files/dwm.desktop

3
x11-wm/dwm/Manifest

@ -0,0 +1,3 @@
AUX dwm-session2 170 BLAKE2B 10158b31ae25da00d7034ce88c321f0703f3374bcf0140ce4ad3ff00483ca634075b2b5b4fc3a97b105e66128c1c882154cd815bb420d473ad1e6af0ff1dce75 SHA512 e882c447824ec430862f9af968aad0f2276b7ab28cf60b8f8e49551e3b9cc2a249429987f4a7d6577eb18182b7709fb4d7c5c4651192a04dc2394ba9afa89f08
AUX dwm.desktop 118 BLAKE2B e88e7e7376dc18c82c39cf2e07867febc49e0f4749a5e50fd3bca7a3e03af26222fd569aa3c38fa486e4998b64808fee5a3f17d4891eea0b410c54f726850004 SHA512 6a4ba9a9c80c9a39c181427eb48f28edc7c139c73e8452b4012774d1ea787054cad4996da9c839fa437e6dba3ddba521fea72050e3929d59fcf00988bee28db8
EBUILD dwm-9999.ebuild 1057 BLAKE2B 5bac877fd23292550af7640910dc07f6926ba1f714ac2c42236e60284747159cee180737f9b0caf32b2f61f0105c4b59f03a93c9752b979af9055d0723c2741c SHA512 106878a880611431bc335db1fb5542803d1b6ec562662d8c430046d99ff50be5b5f5a3ac34979fa4c73f28efc21204f7800cc33a04848da9448d64715192aad0

58
x11-wm/dwm/dwm-9999.ebuild

@ -0,0 +1,58 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit git-r3 savedconfig toolchain-funcs
DESCRIPTION="a dynamic window manager for X11"
HOMEPAGE="https://git.kske.dev/kske/dwm/"
EGIT_REPO_URI="https://git.kske.dev/kske/dwm"
LICENSE="MIT"
SLOT="0"
KEYWORDS=""
IUSE="xinerama"
RDEPEND="
media-libs/fontconfig
x11-libs/libX11
x11-libs/libXft
xinerama? ( x11-libs/libXinerama )
"
DEPEND="
${RDEPEND}
xinerama? ( x11-base/xorg-proto )
"
src_prepare() {
default
sed -i \
-e "s/ -Os / /" \
-e "/^\(LDFLAGS\|CFLAGS\|CPPFLAGS\)/{s| = | += |g;s|-s ||g}" \
config.mk || die
restore_config config.h
}
src_compile() {
if use xinerama; then
emake CC=$(tc-getCC) dwm
else
emake CC=$(tc-getCC) XINERAMAFLAGS="" XINERAMALIBS="" dwm
fi
}
src_install() {
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
exeinto /etc/X11/Sessions
newexe "${FILESDIR}"/dwm-session2 dwm
insinto /usr/share/xsessions
doins "${FILESDIR}"/dwm.desktop
dodoc README
save_config config.h
}

11
x11-wm/dwm/files/dwm-session2

@ -0,0 +1,11 @@
#!/bin/sh
DIR=${HOME}/.dwm
if [ -f "${DIR}"/dwmrc ]; then
/bin/sh "${DIR}"/dwmrc &
else
while true; do
xsetroot -name "`date`"
sleep 1
done &
fi
exec /usr/bin/dwm

7
x11-wm/dwm/files/dwm.desktop

@ -0,0 +1,7 @@
[Desktop Entry]
Name=dwm
Comment=dynamic window manager
Exec=/etc/X11/Sessions/dwm
TryExec=dwm
Icon=
Type=Application
Loading…
Cancel
Save