aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Burch <eli.burch@burchbytes.com>2024-07-21 13:47:41 -0700
committerEli Burch <eli.burch@burchbytes.com>2024-07-21 13:50:00 -0700
commit539dce8c73ed254b0312ec0ab33e8545c2927b9a (patch)
tree9c5f04e239e24caf7af7b4cacdfe908fb157dd03 /x11-misc
parentdev-cpp/drogon: drop 1.9.4 (diff)
downloadguru-539dce8c73ed254b0312ec0ab33e8545c2927b9a.tar.gz
guru-539dce8c73ed254b0312ec0ab33e8545c2927b9a.tar.bz2
guru-539dce8c73ed254b0312ec0ab33e8545c2927b9a.zip
x11-misc/slstatus: new package, add 1.0
Signed-off-by: Eli Burch <eli.burch@burchbytes.com>
Diffstat (limited to 'x11-misc')
-rw-r--r--x11-misc/slstatus/Manifest1
-rw-r--r--x11-misc/slstatus/metadata.xml8
-rw-r--r--x11-misc/slstatus/slstatus-1.0.ebuild48
3 files changed, 57 insertions, 0 deletions
diff --git a/x11-misc/slstatus/Manifest b/x11-misc/slstatus/Manifest
new file mode 100644
index 000000000..2ff2b4699
--- /dev/null
+++ b/x11-misc/slstatus/Manifest
@@ -0,0 +1 @@
+DIST slstatus-1.0.tar.gz 17400 BLAKE2B 812576b0f9f338d39b38011e8e14e4f19dcffa0076631c2f72f8b0f40fe7646dac8d3400b7009528506374ea6695ae1a1f2c41f7ff8aa8d807ffdc118bcaab19 SHA512 026be4a6808e5e4c57720fe77018c8880d3da0422fb88d39ddd752dc64eb9c2602368948ac1fd752585d136da7bcd790d7368186ba39e05a822c274ca3d12b1b
diff --git a/x11-misc/slstatus/metadata.xml b/x11-misc/slstatus/metadata.xml
new file mode 100644
index 000000000..51a228631
--- /dev/null
+++ b/x11-misc/slstatus/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>eli.burch@burchbytes.com</email>
+ <name>Eli Burch</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/x11-misc/slstatus/slstatus-1.0.ebuild b/x11-misc/slstatus/slstatus-1.0.ebuild
new file mode 100644
index 000000000..d03f76338
--- /dev/null
+++ b/x11-misc/slstatus/slstatus-1.0.ebuild
@@ -0,0 +1,48 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs savedconfig
+
+DESCRIPTION="Status monitor for window managers that use WM_NAME/stdin to fill the status bar"
+HOMEPAGE="https://tools.suckless.org/slstatus/"
+SRC_URI="https://dl.suckless.org/tools/${P}.tar.gz"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE="savedconfig"
+
+RDEPEND="
+ x11-libs/libX11
+"
+DEPEND="
+ ${RDEPEND}
+ x11-base/xorg-proto
+"
+
+src_prepare(){
+ default
+
+ sed -i \
+ -e "s/ -Os / /" \
+ -e "/^\(LDFLAGS\|CFLAGS\|CPPFLAGS\)/{s| = | += |g;s|-s ||g}" \
+ -e "/^X11LIB/{s:/usr/X11R6/lib:/usr/$(get_libdir)/X11:}" \
+ -e '/^X11INC/{s:/usr/X11R6/include:/usr/include/X11:}' \
+ config.mk || die
+
+ restore_config config.def.h
+}
+
+src_compile(){
+ emake CC="$(tc-getCC)"
+}
+
+src_install(){
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
+ einstalldocs
+
+ save_config config.def.h
+}