void-packages

Void Source Packages
git clone git://ezup.dev/void-packages.git
Log | Files | Refs | README | LICENSE

commit 070b93487216f545e21cfc5f7372bcbcea88ee4c
parent 081a021aa6c3d0ae9e5c9d87611b0bf49520c6f0
Author: Dash Eclipse <dash@ezup.dev>
Date:   Tue, 21 Jul 2020 15:54:08 +0000

ydotool: add service and udev rules

Diffstat:
Mcommon/shlibs | 2+-
Asrcpkgs/ydotool-devel | 2++
Asrcpkgs/ydotool/INSTALL.msg | 6++++++
Asrcpkgs/ydotool/files/80-uinput.rules | 3+++
Asrcpkgs/ydotool/files/ydotoold/log/run | 2++
Asrcpkgs/ydotool/files/ydotoold/run | 2++
Msrcpkgs/ydotool/template | 18++++++++++++++++--
7 files changed, 32 insertions(+), 3 deletions(-)

diff --git a/common/shlibs b/common/shlibs @@ -3980,4 +3980,4 @@ libtexlua53.so.5 texlive-LuaTeX-20200406_1 libptexenc.so.1 texlive-20200406_1 libdolphinvcs.so.5 dolphin-20.04.3_1 -libydotool.so ydotool-0.1.8_1 +libydotool.so ydotool-devel-0.1.8_2 diff --git a/srcpkgs/ydotool-devel b/srcpkgs/ydotool-devel @@ -0,0 +1 @@ +ydotool+ \ No newline at end of file diff --git a/srcpkgs/ydotool/INSTALL.msg b/srcpkgs/ydotool/INSTALL.msg @@ -0,0 +1,6 @@ +udev rules for uinput has been installed, +to access /dev/uinput, add yourself to group input: + + $ sudo usermod -a -G input $USER + +and then re-login to make it effective. diff --git a/srcpkgs/ydotool/files/80-uinput.rules b/srcpkgs/ydotool/files/80-uinput.rules @@ -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" diff --git a/srcpkgs/ydotool/files/ydotoold/log/run b/srcpkgs/ydotool/files/ydotoold/log/run @@ -0,0 +1 @@ +/usr/bin/vlogger+ \ No newline at end of file diff --git a/srcpkgs/ydotool/files/ydotoold/run b/srcpkgs/ydotool/files/ydotoold/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec ydotoold 2>&1 diff --git a/srcpkgs/ydotool/template b/srcpkgs/ydotool/template @@ -1,14 +1,28 @@ # Template file for 'ydotool' pkgname=ydotool version=0.1.8 -revision=1 +revision=2 wrksrc="${pkgname}-${version}" build_style="cmake" makedepends="boost-devel libevdevPlus-devel libuInputPlus-devel" +depends="ydotool-${version}_${revision}" short_desc="Generic command-line automation tool (no X!), works on Wayland" maintainer="Dash Eclipse <dash@ezup.dev>" license="MIT" homepage="https://github.com/ReimuNotMoe/ydotool" distfiles="${homepage}/archive/v${version}.tar.gz" checksum=6ebc4ede0a11aa7ced6b52637a4a59cc1528b4c5ed54478d38f0248a40b40a07 -shlib_provides="libydotool.so" + +post_install() { + vinstall ${FILESDIR}/80-uinput.rules 644 usr/lib/udev/rules.d + vsv ydotoold +} + +ydotool-devel_package() { + short_desc+=" - development files" + shlib_provides="libydotool.so" + pkg_install() { + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + } +}