# Maintainer: TobiWan54 pkgname=makima-bin _name=${pkgname%-bin} pkgver=0.10.3 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=('1acd96086e46298269b243e010c05a9ddb3e36ddbee5a46fc0cc7826adbe2693') 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 <