Add sys-apps/keyd
This commit is contained in:
parent
ce49af0433
commit
da70495ac7
3 changed files with 56 additions and 0 deletions
6
acct-group/keyd/keyd-0.ebuild
Normal file
6
acct-group/keyd/keyd-0.ebuild
Normal file
|
@ -0,0 +1,6 @@
|
|||
# Copyright 2023 ~keith
|
||||
# Distributed under the terms of the GNU General Public License v3
|
||||
|
||||
EAPI=8
|
||||
inherit acct-group
|
||||
ACCT_GROUP_ID=-1
|
27
sys-apps/keyd/files/Makefile.patch
Normal file
27
sys-apps/keyd/files/Makefile.patch
Normal file
|
@ -0,0 +1,27 @@
|
|||
diff --git a/Makefile b/Makefile
|
||||
index 1f9dcce..011e4e8 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -47,14 +47,7 @@ man:
|
||||
scdoc < "$$f" | gzip > "$$target"; \
|
||||
done
|
||||
install:
|
||||
- @if [ -e $(DESTDIR)$(PREFIX)/lib/systemd/ ]; then \
|
||||
- install -Dm644 keyd.service $(DESTDIR)$(PREFIX)/lib/systemd/system/keyd.service; \
|
||||
- else \
|
||||
- echo "NOTE: systemd not found, you will need to manually add keyd to your system's init process."; \
|
||||
- fi
|
||||
-
|
||||
@if [ "$(VKBD)" = "usb-gadget" ]; then \
|
||||
- install -Dm644 src/vkbd/usb-gadget.service $(DESTDIR)$(PREFIX)/lib/systemd/system/keyd-usb-gadget.service; \
|
||||
install -Dm755 src/vkbd/usb-gadget.sh $(DESTDIR)$(PREFIX)/bin/keyd-usb-gadget.sh; \
|
||||
fi
|
||||
|
||||
@@ -66,7 +59,6 @@ install:
|
||||
mkdir -p $(DESTDIR)$(PREFIX)/share/doc/keyd/
|
||||
mkdir -p $(DESTDIR)$(PREFIX)/share/doc/keyd/examples/
|
||||
|
||||
- -groupadd keyd
|
||||
install -m755 bin/* $(DESTDIR)$(PREFIX)/bin/
|
||||
install -m644 docs/*.md $(DESTDIR)$(PREFIX)/share/doc/keyd/
|
||||
install -m644 examples/* $(DESTDIR)$(PREFIX)/share/doc/keyd/examples/
|
23
sys-apps/keyd/keyd-2.4.3.ebuild
Normal file
23
sys-apps/keyd/keyd-2.4.3.ebuild
Normal file
|
@ -0,0 +1,23 @@
|
|||
# Copyright 2023 ~keith
|
||||
# Distributed under the terms of the GNU General Public License v3
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit git-r3
|
||||
|
||||
DESCRIPTION="A key remapping daemon for Linux"
|
||||
HOMEPAGE="https://github.com/rvaiya/keyd"
|
||||
EGIT_REPO_URI="https://github.com/rvaiya/keyd"
|
||||
EGIT_COMMIT="v2.4.3"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${DEPEND} acct-group/keyd"
|
||||
BDEPEND=""
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/Makefile.patch
|
||||
)
|
Loading…
Reference in a new issue