From 75be01bf7e860389ece5257fd95a2ebcfd5ab0a8 Mon Sep 17 00:00:00 2001 From: Sravan Balaji Date: Mon, 29 Apr 2024 11:22:25 -0400 Subject: [PATCH] Add greenclip package and add as dependency to dwm-flexipatch --- x11-misc/greenclip/greenclip-4.2.ebuild | 41 +++++++++++++++++++ .../dwm-flexipatch/dwm-flexipatch-9999.ebuild | 1 + 2 files changed, 42 insertions(+) create mode 100644 x11-misc/greenclip/greenclip-4.2.ebuild diff --git a/x11-misc/greenclip/greenclip-4.2.ebuild b/x11-misc/greenclip/greenclip-4.2.ebuild new file mode 100644 index 0000000..063cc4b --- /dev/null +++ b/x11-misc/greenclip/greenclip-4.2.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Simple clipboard manager to be integrated with rofi - Static binary available" +HOMEPAGE="https://github.com/erebe/greenclip" + +LICENSE="GPL" +SLOT="0" +KEYWORDS="amd64" + +IUSE="systemd" +DEPEND=" + net-misc/wget +" +RDEPEND=" + x11-misc/rofi +" + +S=${WORKDIR} + +pkg_setup() { + cd ${WORKDIR} + wget -O greenclip https://github.com/erebe/greenclip/releases/download/v${PV}/greenclip-v${PV} + wget -O greenclip.service https://aur.archlinux.org/cgit/aur.git/plain/greenclip.service?h=rofi-greenclip +} + +src_compile() { + einfo "Skipping compile step" +} + +src_install() { + if use systemd ; then + insinto /usr/lib/systemd/user/ + doins greenclip.service + elog "Run \`systemctl --user enable --now greenclip.service\` to enable greenclip systemd user service." + fi + + dobin greenclip +} diff --git a/x11-wm/dwm-flexipatch/dwm-flexipatch-9999.ebuild b/x11-wm/dwm-flexipatch/dwm-flexipatch-9999.ebuild index d9496d8..70398ae 100644 --- a/x11-wm/dwm-flexipatch/dwm-flexipatch-9999.ebuild +++ b/x11-wm/dwm-flexipatch/dwm-flexipatch-9999.ebuild @@ -27,6 +27,7 @@ RDEPEND=" x11-misc/polybar-dwm-module x11-misc/deadd-notification-center-bin x11-misc/rofi + x11-misc/greenclip x11-terms/kitty "