This commit is contained in:
Ryan Hughes
2026-05-08 01:04:51 -04:00
parent 27eebe2cf5
commit 3d0f9fc5c3
3 changed files with 3 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
pkgbase = makima-bin
pkgdesc = Linux daemon to remap and create macros for keyboards, mice and controllers.
pkgver = 0.10.2
pkgrel = 1
url = https://github.com/cyber-sushi/makima
arch = x86_64
license = GPL-3.0-or-later
provides = makima
conflicts = makima
source = https://github.com/cyber-sushi/makima/releases/download/v0.10.2/makima
sha256sums = ad8255f44a8a619f7d300bbf81463b61e3e6e7af37697fac8d53f6c7f937edaf
pkgname = makima-bin
@@ -0,0 +1,3 @@
{
"source": "aur"
}
+42
View File
@@ -0,0 +1,42 @@
# Maintainer: TobiWan54 <tobiwan54 at proton dot me>
pkgname=makima-bin
_name=${pkgname%-bin}
pkgver=0.10.2
pkgrel=1
pkgdesc='Linux daemon to remap and create macros for keyboards, mice and controllers.'
arch=('x86_64')
url='https://github.com/cyber-sushi/makima'
license=('GPL-3.0-or-later')
provides=("$_name")
conflicts=("$_name")
source=("https://github.com/cyber-sushi/makima/releases/download/v${pkgver}/makima")
sha256sums=('ad8255f44a8a619f7d300bbf81463b61e3e6e7af37697fac8d53f6c7f937edaf')
package() {
install -Dm755 makima "$pkgdir/usr/bin/makima"
mkdir -p "$pkgdir/etc/udev/rules.d"
echo 'SUBSYSTEM=="misc", KERNEL=="uinput", MODE="0660", GROUP="input", TAG+="uaccess"' > "$pkgdir/etc/udev/rules.d/50-makima.rules"
mkdir -p "$pkgdir/etc/modules-load.d"
echo 'uinput' > "$pkgdir/etc/modules-load.d/uinput.conf"
mkdir -p "$pkgdir/usr/lib/systemd/system"
tee "$pkgdir/usr/lib/systemd/system/makima.service" > /dev/null <<EOF
[Unit]
Description=Makima remapping daemon
[Service]
Type=simple
Environment="MAKIMA_CONFIG=/home/$USER/.config/makima"
ExecStart=/usr/bin/makima
Restart=always
RestartSec=3
User=$USER
Group=input
[Install]
WantedBy=default.target
EOF
}