# Maintainer: eNV25 pkgname=keyd pkgver=2.4.3 pkgrel=3 arch=('x86_64' 'aarch64') pkgdesc="A key remapping daemon for linux. " url="https://github.com/rvaiya/$pkgname" license=('MIT') makedepends=(git) optdepends=( 'python3: for keyd-application-mapper' ) # https://github.com/rvaiya/keyd/tags _commit=5e4ef41b41ce02f7d6a9f2e51298810d84589e76 source=("git+$url.git#tag=$_commit") sha256sums=('SKIP') build() { cd "$srcdir/$pkgname/" make } package() { cd "$srcdir/$pkgname/" # opt-in for systemd service and libinput quirks install -dm755 "${pkgdir}/usr/lib/systemd/system" install -dm755 "${pkgdir}/usr/share/libinput" make DESTDIR="${pkgdir}" PREFIX='/usr' install echo 'g keyd' | install -Dm644 /dev/stdin "${pkgdir}/usr/lib/sysusers.d/${pkgname%-git}.conf" install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname%-git}/" }