Date: Saturday, December 26, 2020 @ 00:38:02 Author: ainola Revision: 791378
archrelease: copy trunk to community-x86_64 Added: interception-dual-function-keys/repos/community-x86_64/ interception-dual-function-keys/repos/community-x86_64/0001-make-Append-don-t-overwrite-user-defs.patch (from rev 791377, interception-dual-function-keys/trunk/0001-make-Append-don-t-overwrite-user-defs.patch) interception-dual-function-keys/repos/community-x86_64/PKGBUILD (from rev 791377, interception-dual-function-keys/trunk/PKGBUILD) --------------------------------------------------+ 0001-make-Append-don-t-overwrite-user-defs.patch | 42 +++++++++++++++++++++ PKGBUILD | 33 ++++++++++++++++ 2 files changed, 75 insertions(+) Copied: interception-dual-function-keys/repos/community-x86_64/0001-make-Append-don-t-overwrite-user-defs.patch (from rev 791377, interception-dual-function-keys/trunk/0001-make-Append-don-t-overwrite-user-defs.patch) =================================================================== --- community-x86_64/0001-make-Append-don-t-overwrite-user-defs.patch (rev 0) +++ community-x86_64/0001-make-Append-don-t-overwrite-user-defs.patch 2020-12-26 00:38:02 UTC (rev 791378) @@ -0,0 +1,42 @@ +From 02823635bf3bc149892ce75efffcc33a33e184c5 Mon Sep 17 00:00:00 2001 +From: Brett Cornwall <br...@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 + Copied: interception-dual-function-keys/repos/community-x86_64/PKGBUILD (from rev 791377, interception-dual-function-keys/trunk/PKGBUILD) =================================================================== --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2020-12-26 00:38:02 UTC (rev 791378) @@ -0,0 +1,33 @@ +# Maintainer: Brett Cornwall <ain...@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" +}