* add ydotool
This commit is contained in:
parent
89f7f0409d
commit
1c0ffad28b
3
ydotool/80-uinput.rules
Normal file
3
ydotool/80-uinput.rules
Normal file
@ -0,0 +1,3 @@
|
||||
## ydotoold fix
|
||||
## https://github.com/ReimuNotMoe/ydotool/issues/25#issuecomment-535842993
|
||||
KERNEL=="uinput", GROUP="input", MODE="0660", OPTIONS+="static_node=uinput"
|
33
ydotool/PKGBUILD
Normal file
33
ydotool/PKGBUILD
Normal file
@ -0,0 +1,33 @@
|
||||
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
||||
# Maintainer: Felix Yan <felixonmars@archlinux.org>
|
||||
# Contributor: Eric Engestrom <aur [at] engestrom [dot] ch>
|
||||
|
||||
pkgname=ydotool
|
||||
pkgver=1.0.4
|
||||
pkgrel=1
|
||||
pkgdesc="Generic command-line automation tool (no X!)"
|
||||
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
|
||||
depends=('glibc')
|
||||
makedepends=('cmake' 'ninja' 'scdoc' 'systemd')
|
||||
url="https://github.com/ReimuNotMoe/ydotool"
|
||||
license=('AGPL3')
|
||||
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
|
||||
"80-uinput.rules")
|
||||
sha256sums=('ba075a43aa6ead51940e892ecffa4d0b8b40c241e4e2bc4bd9bd26b61fde23bd'
|
||||
'e092f5e7e474aec6c980c458046d0ff11b18750b53de2bf0a0aba1ca26e6d58e')
|
||||
install=ydotool.install
|
||||
|
||||
build() {
|
||||
cmake \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_MANDIR=/usr/share/man \
|
||||
-G Ninja \
|
||||
-S "$pkgname-$pkgver" -B build
|
||||
ninja -C build
|
||||
}
|
||||
|
||||
package() {
|
||||
DESTDIR="$pkgdir" ninja -C build install
|
||||
|
||||
install -Dm644 80-uinput.rules -t "$pkgdir"/usr/lib/udev/rules.d/
|
||||
}
|
8
ydotool/ydotool.install
Normal file
8
ydotool/ydotool.install
Normal file
@ -0,0 +1,8 @@
|
||||
post_install() {
|
||||
echo 'Make sure your user is in the `input` group by running the following command:'
|
||||
echo ' $ usermod -aG input $USER'
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user