* [gentoo-commits] repo/proj/guru:dev commit in: app-misc/keyd/files/, app-misc/keyd/
@ 2025-03-04 16:36 Jack Sangdahl
0 siblings, 0 replies; only message in thread
From: Jack Sangdahl @ 2025-03-04 16:36 UTC (permalink / raw
To: gentoo-commits
commit: bec339ba6af51eb19f3a3503d9586596916e00ba
Author: Jack Sangdahl <jack <AT> pngu <DOT> org>
AuthorDate: Tue Mar 4 07:30:25 2025 +0000
Commit: Jack Sangdahl <jack <AT> pngu <DOT> org>
CommitDate: Tue Mar 4 16:35:51 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bec339ba
app-misc/keyd: new package, add 2.5.0
Signed-off-by: Jack Sangdahl <jack <AT> pngu.org>
app-misc/keyd/Manifest | 1 +
app-misc/keyd/files/default.conf | 12 ++++++++++++
app-misc/keyd/files/keyd-2.5.0-makefile.patch | 21 ++++++++++++++++++++
app-misc/keyd/files/keyd.initd | 7 +++++++
app-misc/keyd/keyd-2.5.0.ebuild | 28 +++++++++++++++++++++++++++
app-misc/keyd/metadata.xml | 12 ++++++++++++
6 files changed, 81 insertions(+)
diff --git a/app-misc/keyd/Manifest b/app-misc/keyd/Manifest
new file mode 100644
index 000000000..13a125dfd
--- /dev/null
+++ b/app-misc/keyd/Manifest
@@ -0,0 +1 @@
+DIST keyd-2.5.0.tar.gz 671616 BLAKE2B cad701d267093aa7eb71490068a0d298262621bc1573e584e08db1312ef8728fba45f09c2400bc19418aed139ea2063cacc40a02352bf0391fef40c2ec1157ba SHA512 71717b6a72b047c2891bdfeb393c93a004f7a2e673ba07f6b3bcf66f89c9185c3edb1dcf983525d48afd58472793901dceb55fb9fcf51900705d3fabc55cf73a
diff --git a/app-misc/keyd/files/default.conf b/app-misc/keyd/files/default.conf
new file mode 100644
index 000000000..40e82975f
--- /dev/null
+++ b/app-misc/keyd/files/default.conf
@@ -0,0 +1,12 @@
+# /etc/keyd/default.conf
+[ids]
+
+*
+
+[main]
+
+# Maps capslock to escape when pressed and control when held.
+# capslock = overload(control, esc)
+
+# Remaps the escape key to capslock
+# esc = capslock
diff --git a/app-misc/keyd/files/keyd-2.5.0-makefile.patch b/app-misc/keyd/files/keyd-2.5.0-makefile.patch
new file mode 100644
index 000000000..96baa2081
--- /dev/null
+++ b/app-misc/keyd/files/keyd-2.5.0-makefile.patch
@@ -0,0 +1,21 @@
+diff --git a/Makefile b/Makefile
+index b4fc2bc..828b649 100644
+--- a/Makefile
++++ b/Makefile
+@@ -2,7 +2,7 @@
+ VERSION=2.5.0
+ COMMIT=$(shell git describe --no-match --always --abbrev=7 --dirty)
+ VKBD=uinput
+-PREFIX?=/usr/local
++PREFIX=$(EPREFIX)/usr
+
+ CONFIG_DIR?=/etc/keyd
+ SOCKET_PATH=/var/run/keyd.socket
+@@ -69,7 +69,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/
diff --git a/app-misc/keyd/files/keyd.initd b/app-misc/keyd/files/keyd.initd
new file mode 100644
index 000000000..10d02a3c0
--- /dev/null
+++ b/app-misc/keyd/files/keyd.initd
@@ -0,0 +1,7 @@
+#!/sbin/openrc-run
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+command=/usr/bin/keyd
+command_background="true"
+pidfile="/run/keyd.pid"
diff --git a/app-misc/keyd/keyd-2.5.0.ebuild b/app-misc/keyd/keyd-2.5.0.ebuild
new file mode 100644
index 000000000..7611ad4f7
--- /dev/null
+++ b/app-misc/keyd/keyd-2.5.0.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="A key remapping daemon for linux"
+HOMEPAGE="https://github.com/rvaiya/keyd"
+SRC_URI="https://github.com/rvaiya/keyd/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+
+RDEPEND="acct-group/keyd"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-makefile.patch
+)
+
+src_install() {
+ default
+ newinitd "${FILESDIR}/keyd.initd" "keyd"
+ mv "${D}/usr/share/doc/keyd" "${D}/usr/share/doc/${P}" || die
+ docompress -x /usr/share/man/man1/keyd.1.gz
+ docompress -x /usr/share/man/man1/keyd-application-mapper.1.gz
+ insinto /etc/keyd
+ doins "${FILESDIR}"/default.conf
+}
diff --git a/app-misc/keyd/metadata.xml b/app-misc/keyd/metadata.xml
new file mode 100644
index 000000000..e6a81ca92
--- /dev/null
+++ b/app-misc/keyd/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>jack@pngu.org</email>
+ <name>Jack Sangdahl</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://github.com/rvaiya/keyd/issues</bugs-to>
+ <remote-id type="github">rvaiya/keyd</remote-id>
+ </upstream>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-03-04 16:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-04 16:36 [gentoo-commits] repo/proj/guru:dev commit in: app-misc/keyd/files/, app-misc/keyd/ Jack Sangdahl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox