summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6c817647bf3a80aa4e0642a64d9794c4f1f2081d (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
# Maintainer: Akarsh Jain <akarsh.1995.02@gmail.com>

pkgname=interception-caps2esc-arrow-git
pkgver=r19.2623069
pkgrel=1
pkgdesc='Interception plugin: Capslock tap for escape key, Capslock + hjkl for arrow keys.'
arch=('x86_64')
license=('MIT')
url='https://github.com/akarsh1995/interception-caps2esc-hjkl-arrow'
depends=('interception-tools')
makedepends=('git' 'cargo')
source=($pkgname::git+https://github.com/akarsh1995/interception-caps2esc-hjkl-arrow)
md5sums=('SKIP')
install='post.install'

build() {
    cd "$srcdir/$pkgname"
    export RUSTUP_TOOLCHAIN=stable
    export CARGO_TARGET_DIR=target
    cargo build --frozen --release --all-features
}

package() {
    cd "$srcdir/$pkgname"
    install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/caps2esc-hjkl-arrow"
    install -Dm644 caps2esc-hjkl-arrow.yaml "${pkgdir}/etc/interception/udevmon.d/caps2esc-hjkl-arrow.yaml"
}