2021-01-21 08:52:55 +00:00
|
|
|
# Maintainer: Eric Engestrom <aur [at] engestrom [dot] ch>
|
|
|
|
|
|
|
|
pkgname=ydotool
|
|
|
|
pkgver=0.2.0
|
2021-08-04 19:00:01 +00:00
|
|
|
pkgrel=2
|
2021-01-21 08:52:55 +00:00
|
|
|
pkgdesc="Generic command-line automation tool (no X!)"
|
2021-08-04 19:00:01 +00:00
|
|
|
arch=('x86_64' 'aarch64')
|
|
|
|
depends=('libevdevplus' 'libuinputplus')
|
|
|
|
makedepends=('cmake' 'ninja' 'scdoc')
|
2021-01-21 08:52:55 +00:00
|
|
|
url="https://github.com/ReimuNotMoe/ydotool"
|
2021-08-04 19:00:01 +00:00
|
|
|
license=('AGPL3')
|
|
|
|
source=("$url/archive/v$pkgver.tar.gz"
|
|
|
|
"$url/pull/96.patch"
|
|
|
|
"80-uinput.rules")
|
|
|
|
sha256sums=('2311b003d2ff383f3348f17101f0df74f56616d530d66d0a014a52ba85a5dcf1'
|
|
|
|
'f462b5f62306a5431e5aa39d1a8ba670300f7304a15cc720af5ded65193eaeda'
|
|
|
|
'e092f5e7e474aec6c980c458046d0ff11b18750b53de2bf0a0aba1ca26e6d58e')
|
|
|
|
install=ydotool.install
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "$pkgname-$pkgver"
|
|
|
|
patch -sp1 -i ../96.patch
|
|
|
|
}
|
2021-01-21 08:52:55 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cmake \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
2021-08-04 19:00:01 +00:00
|
|
|
-DCMAKE_INSTALL_MANDIR=/usr/share/man \
|
2021-01-21 08:52:55 +00:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCXXOPTS_ENABLE_INSTALL=OFF \
|
|
|
|
-G Ninja \
|
|
|
|
-S "$pkgname-$pkgver" -B build
|
|
|
|
ninja -C build
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2021-08-04 19:00:01 +00:00
|
|
|
DESTDIR="$pkgdir" ninja -C build install
|
2021-01-21 08:52:55 +00:00
|
|
|
|
2021-08-04 19:00:01 +00:00
|
|
|
install -Dm644 80-uinput.rules "$pkgdir/etc/udev/rules.d/80-uinput.rules"
|
2021-01-21 08:52:55 +00:00
|
|
|
}
|