/xidlehook-void

https://codeberg.org/cereus-linux/pkgs/src/branch/master/srcpkgs/xidlehook. xidlehook binary and source port for Void Linux.

GNU General Public License v3.0GPL-3.0

xidlehook-void

xidlehook binary and source port for Void Linux.

All credits are for xXR01I1Xx, who did the port at Void's PR. I just extracted the template, updated to 0.10.0, and built binary packages. If Xidlehook gets merged into the repositories, this one will be archived.

How to install

Please note that this port was only tested on x86_64-glibc and x86_64-musl (i686 testing is in progress). Feel free to tell me if this works well on i686 and ARM platforms.

Building from template

First of all, we'll need xtools installed in order to use properly xbps-src:

 # xbps-install xtools

If you haven't cloned the void-packages repository already, do it now:

 git clone --depth=1 https://github.com/void-linux/void-packages

Prepare the build environment (do this once if not done already):

 cd void-packages
 ./xbps-src binary-bootstrap

Clone the template to srcpkgs directory, compile it and install (do this inside your void-packages directory):

 cd void-packages
 git clone https://github.com/KF-Art/xidlehook-void srcpkgs/xidlehook
 ./xbps-src pkg -j $(nprocs) xidlehook # build the package
 xi xidlehook # install the package

Updating template manually

I'll do my best to give the faster as possible for me the new releases of this package, but in case that I can't update the template, or you just want to update it yourself, here is how to update it.

In this example, updating from 0.10.0 to a hypothetical 1.0.0. This actually can be used as a example to update any template manually, like MEGASync, Brave, etc.

 cd void-packages # you need to be in the void-packages directory to do these steps

 templatedir="srcpkgs/xidlehook/template"
 sed -i 's/0.10.0/1.0.0/g' $templatedir # update template's version
 xgensum -i $templatedir # regenerate checksum

After that, you'll need to rebuild the package with the previous steps.

Installing prebuilt binaries

There is also an binary package to install directly to your system. I recommend this if you don't want to go through the building process, but this may be outdated sometimes. I'll try to mantain this updated as is possible for me.

First, download the corresponding package for your architecture and libc from the releases page. Once downloaded, open a terminal inside the download folder and proceed:

 xbps-rindex -a *.xbps
 xi -R . xidlehook

I'll consider try to create my own repository to provide updates faster.

Updating cloned repository contents

 cd srcpkgs/xidlehook
 git pull