Add greenclip package and add as dependency to dwm-flexipatch

This commit is contained in:
Sravan Balaji 2024-04-29 11:22:25 -04:00
parent f998473fb0
commit 75be01bf7e
2 changed files with 42 additions and 0 deletions

View File

@ -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
}

View File

@ -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
"