[arch-commits] Commit in (5 files)

Brett Cornwall ainola at archlinux.org
Sat Dec 26 00:37:07 UTC 2020


    Date: Saturday, December 26, 2020 @ 00:37:06
  Author: ainola
Revision: 791374

Import interception-dual-function-keys from AUR

only 4 votes but it's a relatively new project. Alongside caps2esc this completes a full-featured xcape replacement for non-X environments

Added:
  interception-dual-function-keys/
  interception-dual-function-keys/repos/
  interception-dual-function-keys/trunk/
  interception-dual-function-keys/trunk/0001-make-Append-don-t-overwrite-user-defs.patch
  interception-dual-function-keys/trunk/PKGBUILD

--------------------------------------------------+
 0001-make-Append-don-t-overwrite-user-defs.patch |   42 +++++++++++++++++++++
 PKGBUILD                                         |   33 ++++++++++++++++
 2 files changed, 75 insertions(+)

Added: interception-dual-function-keys/trunk/0001-make-Append-don-t-overwrite-user-defs.patch
===================================================================
--- interception-dual-function-keys/trunk/0001-make-Append-don-t-overwrite-user-defs.patch	                        (rev 0)
+++ interception-dual-function-keys/trunk/0001-make-Append-don-t-overwrite-user-defs.patch	2020-12-26 00:37:06 UTC (rev 791374)
@@ -0,0 +1,42 @@
+From 02823635bf3bc149892ce75efffcc33a33e184c5 Mon Sep 17 00:00:00 2001
+From: Brett Cornwall <brett at i--b.com>
+Date: Fri, 25 Dec 2020 16:29:03 -0800
+Subject: [PATCH] make: Append, don't overwrite user defs
+
+---
+ config.mk | 16 +++++++---------
+ 1 file changed, 7 insertions(+), 9 deletions(-)
+
+diff --git a/config.mk b/config.mk
+index 57bf7a3..619121d 100644
+--- a/config.mk
++++ b/config.mk
+@@ -1,18 +1,16 @@
+-ifndef VERSION
+-  VERSION = "development-version"
+-endif
++VERSION ?= "development-version"
+ 
+-PREFIX = /usr/local
++PREFIX ?= /usr/local
+ 
+-INCS = -I/usr/include/libevdev-1.0
++INCS += -I/usr/include/libevdev-1.0
+ 
+-CPPFLAGS = $(INCS) -DVERSION=\"$(VERSION)\"
++CPPFLAGS += $(INCS) -DVERSION=\"$(VERSION)\"
+ 
+-COMPFLAGS = -pedantic -Wall -Wextra -O3
+-CFLAGS = $(COMPFLAGS) -std=c99
++COMPFLAGS += -pedantic -Wall -Wextra -O3
++CFLAGS += $(COMPFLAGS) -std=c99
+ CXXFLAGS = $(COMPFLAGS) -std=c++11
+ 
+-LDFLAGS = -rdynamic -lyaml-cpp -levdev
++LDFLAGS += -rdynamic -lyaml-cpp -levdev
+ 
+ CC = cc
+ CXX = c++
+-- 
+2.29.2
+

Added: interception-dual-function-keys/trunk/PKGBUILD
===================================================================
--- interception-dual-function-keys/trunk/PKGBUILD	                        (rev 0)
+++ interception-dual-function-keys/trunk/PKGBUILD	2020-12-26 00:37:06 UTC (rev 791374)
@@ -0,0 +1,33 @@
+# Maintainer: Brett Cornwall <ainola at archlinux.org>
+# Contributor: Alexander Courtis
+
+pkgname=interception-dual-function-keys
+pkgver=1.2.0
+pkgrel=2
+pkgdesc="Interception plugin for dual-function keys: Tap for one key, hold for another"
+arch=('x86_64')
+url="https://gitlab.com/interception/linux/plugins/dual-function-keys"
+license=('MIT')
+depends=('interception-tools')
+source=("$pkgname-$pkgver.tar.gz::https://gitlab.com/interception/linux/plugins/dual-function-keys/-/archive/$pkgver/dual-function-keys-$pkgver.tar.gz"
+"0001-make-Append-don-t-overwrite-user-defs.patch")
+sha256sums=('fc64d6ddf80c1a153dd0e2180a581649f4a9d489e1718053a70b61faef98e0ca'
+            '98f9dbc96b3f71ba4969146282676946648dfc085d7722794d9bb8b0a9740d30')
+
+prepare() {
+    cd "dual-function-keys-$pkgver"
+    # https://gitlab.com/interception/linux/plugins/dual-function-keys/-/issues/20
+    patch -p1 < ../0001-make-Append-don-t-overwrite-user-defs.patch
+}
+
+build() {
+    cd "dual-function-keys-$pkgver"
+    make VERSION="$pkgver"
+}
+
+package() {
+    cd "dual-function-keys-$pkgver"
+    make PREFIX=/usr DESTDIR="$pkgdir/" install
+    install -Dm644 {README,doc/examples}.md -t "$pkgdir/usr/share/doc/$pkgname"
+    install -Dm644 LICENSE.md -t "$pkgdir/usr/share/licenses/$pkgname"
+}



More information about the arch-commits mailing list