summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6874ec95e5072a4018f21f5d08c7476ceccab22e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: eNV25 <env252525@gmail.com>

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}/"
}