Github messages for voidlinux
 help / color / mirror / Atom feed
From: cgtz <cgtz@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New packages: caps2esc-0.1.3, interception-tools-0.1.1
Date: Mon, 04 May 2020 01:52:04 +0200	[thread overview]
Message-ID: <20200503235204.eMGx80QQgVtwRT9NJUiqGZ7i4lG1VRy5-O3VL0H2jNY@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-21595@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 624 bytes --]

There is an updated pull request by cgtz against master on the void-packages repository

https://github.com/cgtz/void-packages caps2esc-0.1.3
https://github.com/void-linux/void-packages/pull/21595

New packages: caps2esc-0.1.3, interception-tools-0.1.1
Two new packages:
* interception-tools (adapted from https://aur.archlinux.org/packages/interception-tools/)
* caps2esc (adapted from https://aur.archlinux.org/packages/interception-caps2esc/)

A service is provided to run caps2esc using tools provided by interception-tools.

A patch file from https://github.com/void-linux/void-packages/pull/21595.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-caps2esc-0.1.3-21595.patch --]
[-- Type: text/x-diff, Size: 3583 bytes --]

From 72052cbfef95f94dc41aa6cf86da451e2bcede26 Mon Sep 17 00:00:00 2001
From: Casey Getz <clg0000@gmail.com>
Date: Sun, 3 May 2020 19:44:55 -0700
Subject: [PATCH 1/2] New package: interception-tools-0.1.1

---
 srcpkgs/interception-tools/template | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 srcpkgs/interception-tools/template

diff --git a/srcpkgs/interception-tools/template b/srcpkgs/interception-tools/template
new file mode 100644
index 00000000000..225cd13f75b
--- /dev/null
+++ b/srcpkgs/interception-tools/template
@@ -0,0 +1,15 @@
+# Template file for 'interception-tools'
+pkgname=interception-tools
+version=0.1.1
+revision=1
+wrksrc="tools-v0.1.1-92830567d8d86384fd42502aa0eb3de12584cdaf"
+build_style=cmake
+configure_args="-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release"
+makedepends="eudev-libudev-devel libevdev-devel yaml-cpp-devel"
+depends="eudev-libudev libevdev yaml-cpp"
+short_desc="Minimal composable infrastructure on top of libudev and libevdev"
+maintainer="Casey Getz <clg0000@gmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://gitlab.com/interception/linux/tools"
+distfiles="https://gitlab.com/interception/linux/tools/repository/archive.tar.gz?ref=v${version}>interception-tools-${version}.tar.gz"
+checksum="722017f78c21469ddc3f8ec151ce5522dc75c31762a82d445a0d53bfe1bde491"

From e971dda284e77cced772e03110450fe2ec527c2c Mon Sep 17 00:00:00 2001
From: Casey Getz <clg0000@gmail.com>
Date: Sun, 3 May 2020 21:38:05 -0700
Subject: [PATCH 2/2] New package: caps2esc-0.1.3

---
 srcpkgs/caps2esc/files/caps2esc.yaml |  5 +++++
 srcpkgs/caps2esc/files/caps2esc/run  |  3 +++
 srcpkgs/caps2esc/template            | 22 ++++++++++++++++++++++
 3 files changed, 30 insertions(+)
 create mode 100644 srcpkgs/caps2esc/files/caps2esc.yaml
 create mode 100644 srcpkgs/caps2esc/files/caps2esc/run
 create mode 100644 srcpkgs/caps2esc/template

diff --git a/srcpkgs/caps2esc/files/caps2esc.yaml b/srcpkgs/caps2esc/files/caps2esc.yaml
new file mode 100644
index 00000000000..b5ae7f1ee53
--- /dev/null
+++ b/srcpkgs/caps2esc/files/caps2esc.yaml
@@ -0,0 +1,5 @@
+- JOB: "intercept -g $DEVNODE | caps2esc | uinput -d $DEVNODE"
+  DEVICE:
+    EVENTS:
+      EV_KEY: [KEY_CAPSLOCK, KEY_ESC]
+
diff --git a/srcpkgs/caps2esc/files/caps2esc/run b/srcpkgs/caps2esc/files/caps2esc/run
new file mode 100644
index 00000000000..d1be4bb97f0
--- /dev/null
+++ b/srcpkgs/caps2esc/files/caps2esc/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+sv check udevd >/dev/null || exit 1
+exec /usr/bin/nice -n -20 /usr/bin/udevmon -c /etc/caps2esc.yaml 
diff --git a/srcpkgs/caps2esc/template b/srcpkgs/caps2esc/template
new file mode 100644
index 00000000000..d7805af3218
--- /dev/null
+++ b/srcpkgs/caps2esc/template
@@ -0,0 +1,22 @@
+# Template file for 'caps2esc'
+pkgname=caps2esc
+version=0.1.3
+revision=1
+wrksrc="caps2esc-v0.1.3-bb09cd8d9a3f04463df55cb4ba63d2d4920e04a9"
+build_style=cmake
+configure_args="-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release"
+depends="interception-tools"
+short_desc="Transforming the most useless key ever in the most useful one"
+maintainer="Casey Getz <clg0000@gmail.com>"
+license="MIT"
+homepage="https://gitlab.com/interception/linux/plugins/caps2esc"
+distfiles="https://gitlab.com/interception/linux/plugins/caps2esc/repository/archive.tar.gz?ref=v${version}>caps2esc-${version}.tar.gz"
+checksum="4055525a195afa8c12c2e7b3635d856bb88088383393aa48d370bacdc5b0dea4"
+
+conf_files="/etc/caps2esc.yaml"
+
+post_install() {
+	vlicense LICENSE.md
+	vinstall ${FILESDIR}/caps2esc.yaml 644 etc
+	vsv caps2esc
+}

  reply	other threads:[~2020-05-03 23:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-03 23:29 [PR PATCH] " cgtz
2020-05-03 23:52 ` cgtz [this message]
2021-04-24  2:16 ` [PR PATCH] [Closed]: " cgtz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200503235204.eMGx80QQgVtwRT9NJUiqGZ7i4lG1VRy5-O3VL0H2jNY@z \
    --to=cgtz@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).