summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dc8c876c31a628f07aef015eec3a5bb9029316f3 (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
# Maintainer: FlorianNAdam
#
# This PKGBUILD was generated by `cargo aur`: https://crates.io/crates/cargo-aur

pkgname=persistent-evdev-rs-bin
pkgver=0.1.0
pkgrel=4
pkgdesc="Persistent proxy for evdev devices"
url="https://github.com/FlorianNAdam/persistent-input-rs"
license=("MIT")
arch=("x86_64")
provides=("persistent-evdev-rs")
conflicts=("persistent-evdev-rs")
source=("https://github.com/FlorianNAdam/persistent-input-rs/releases/download/v$pkgver/persistent-evdev-rs-$pkgver-x86_64.tar.gz")
sha256sums=("3855e8ada329a1c148efe9efbb18196eabd526e15df830decd7943571e60f689")
backup=(
    "etc/persistent-evdev-rs/config.json"
)

package() {
    install -Dm755 persistent-evdev-rs "$pkgdir/usr/bin/persistent-evdev-rs"
    install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
    install -Dm644 config.json "$pkgdir/etc/persistent-evdev-rs/config.json"
    install -Dm644 persistent-evdev-rs.service "$pkgdir/usr/lib/systemd/system/persistent-evdev-rs.service"
    install -Dm644 60-persistent-input-rs-uinput.rules "$pkgdir/usr/lib/udev/rules.d/60-persistent-input-rs-uinput.rules"
}

post_install() {
  echo "To enable the service, run: systemctl enable persistent-evdev-rs"
  echo "To start the service, run: systemctl start persistent-evdev-rs"
}