summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD42
-rw-r--r--interception-caps2esc-delay-git.install11
-rw-r--r--udevmon.yaml5
4 files changed, 55 insertions, 26 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 60c515a81e7..376b37fc8a7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,19 @@
-pkgbase = interception-caps2esc
- pkgdesc = caps2esc: transforming the most useless key ever in the most useful one
- pkgver = 0.1.3
- pkgrel = 2
- url = https://gitlab.com/interception/linux/plugins/caps2esc
+pkgbase = interception-caps2esc-delay-git
+ pkgdesc = caps2esc: transforming the most useless key ever in the most useful one - with delay patches
+ pkgver = 0.1.3.r5.g3f9a39c
+ pkgrel = 1
+ url = https://gitlab.com/mar04/caps2esc/
+ install = interception-caps2esc-delay-git.install
arch = x86_64
license = MIT
- makedepends = cmake
- makedepends = gcc
depends = interception-tools
conflicts = caps2esc
- source = interception-caps2esc.tar.gz::https://gitlab.com/interception/linux/plugins/caps2esc/repository/archive.tar.gz?ref=v0.1.3
- md5sums = 014e1b3fcd7fd889aab876f22d550eb8
+ conflicts = interception-caps2esc
+ replaces = interception-caps2esc
+ source = interception-caps2esc-delay-git::git+https://gitlab.com/mar04/caps2esc/
+ source = udevmon.yaml
+ md5sums = SKIP
+ md5sums = 44890a5f6c419c5eb6730636f3a6b535
-pkgname = interception-caps2esc
+pkgname = interception-caps2esc-delay-git
diff --git a/PKGBUILD b/PKGBUILD
index 9befd0841eb..b591c404dce 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,25 +1,35 @@
-# Maintainer: Francisco Lopes <francisco@oblita.com>
-pkgname=interception-caps2esc
-pkgver=0.1.3
-pkgrel=2
-pkgdesc='caps2esc: transforming the most useless key ever in the most useful one'
-arch=('x86_64')
-license=('MIT')
-url='https://gitlab.com/interception/linux/plugins/caps2esc'
-depends=('interception-tools')
-makedepends=('cmake' 'gcc')
-conflicts=('caps2esc')
-source=("$pkgname.tar.gz::https://gitlab.com/interception/linux/plugins/caps2esc/repository/archive.tar.gz?ref=v${pkgver}")
-md5sums=('014e1b3fcd7fd889aab876f22d550eb8')
+# Maintainer: Götz Christ <goetzchrist@gmail.com>
+# Contributor: Francisco Lopes <francisco@oblita.com>
+pkgname=interception-caps2esc-delay-git
+_realname=interception-caps2esc
+pkgver=0.1.3.r5.g3f9a39c
+pkgrel=1
+pkgdesc='caps2esc: transforming the most useless key ever in the most useful one - with delay patches'
+arch=(x86_64)
+license=(MIT)
+url="https://gitlab.com/mar04/caps2esc/"
+depends=(interception-tools)
+conflicts=(caps2esc interception-caps2esc)
+replaces=(interception-caps2esc)
+install=$pkgname.install
+source=("$pkgname::git+https://gitlab.com/mar04/caps2esc/"
+ "udevmon.yaml")
+md5sums=(SKIP
+ 44890a5f6c419c5eb6730636f3a6b535)
+
+pkgver() {
+ cd $pkgname
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
build() {
- cd ${srcdir}/caps2esc-v${pkgver}-*
+ cd $srcdir/$pkgname
cmake -Bbuild -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
cmake --build build
}
package() {
- cd ${srcdir}/caps2esc-v${pkgver}-*/build
-
+ cd $srcdir/$pkgname/build
make DESTDIR="$pkgdir/" install
+ install -D -m0644 $srcdir/udevmon.yaml "$pkgdir/usr/share/doc/$_realname/udevmon.example.yaml"
}
diff --git a/interception-caps2esc-delay-git.install b/interception-caps2esc-delay-git.install
new file mode 100644
index 00000000000..905ac5eb603
--- /dev/null
+++ b/interception-caps2esc-delay-git.install
@@ -0,0 +1,11 @@
+_pkgname=interception-caps2esc-delay-git
+_realname=interception-caps2esc
+
+post_install() {
+ echo -ne "\e[34;1m"
+ echo "=== INSTALLATION NOTES for $_pkgname ==="
+ echo -ne "\e[39;1m"
+ echo "An example configuration file has been installed at /usr/share/doc/${_realname}/udevmon.example.yaml"
+ echo "You can copy it to /etc/udevmon.yaml and restart udevmon.service"
+ echo -ne "\e[0m"
+}
diff --git a/udevmon.yaml b/udevmon.yaml
new file mode 100644
index 00000000000..f55ccb12d6b
--- /dev/null
+++ b/udevmon.yaml
@@ -0,0 +1,5 @@
+---
+- JOB: "intercept -g $DEVNODE | caps2esc 0.1 | uinput -d $DEVNODE"
+ DEVICE:
+ EVENTS:
+ EV_KEY: [KEY_CAPSLOCK, KEY_ESC]