New comment by juipeltje on void-packages repository https://github.com/void-linux/void-packages/issues/24123#issuecomment-1815307417 Comment: i'm not sure if i should make a new issue or necrobump this one, but i came across this when i was looking to see if someone had already made a template file for liquidctl, and i decided to update the one in this post to practice making templates. ``` # Template file for 'liquidctl' pkgname=liquidctl version=1.13.0 revision=1 build_style=python3-pep517 hostmakedepends="python3-setuptools python3-setuptools_scm python3-wheel" depends="python3-setuptools python3-usb python3-crcmod python3-hid python3-docopt python3-Pillow python3-smbus libusb" short_desc="Monitor and control liquid coolers and other devices" maintainer="juipeltje " license="GPL-3.0-or-later" homepage="https://github.com/jonasmalacofilho/liquidctl" distfiles="https://github.com/liquidctl/liquidctl/releases/download/v1.13.0/liquidctl-1.13.0.tar.gz" checksum="ee17241689c0bf3de43cf4d97822e344f5b57513d16dd160e37fa0e389a158c7" pre_build() { # upstream encourages the use of these env vars, at setup.py build time, to # customize the output of liquidctl --version export DIST_NAME="Void Linux" export DIST_PACKAGE="$pkgname $version-$revision" } post_install() { vman liquidctl.8 for f in docs/*.md; do vdoc "$f" done } ``` liquidctl also requires python3-colorlog to be installed though, which is not in the void repos, so i made a template file for that as well: ``` # Template file for 'python3-colorlog' pkgname=python3-colorlog version=6.7.0 revision=1 build_style=python3-module hostmakedepends="python3-setuptools" short_desc="Add colours to the output of Python's logging module" maintainer="juipeltje " license="MIT" homepage="https://pypi.org/project/colorlog/#description" distfiles="https://files.pythonhosted.org/packages/78/6b/4e5481ddcdb9c255b2715f54c863629f1543e97bc8c309d1c5c131ad14f2/colorlog-6.7.0.tar.gz" checksum="bd94bd21c1e13fac7bd3153f4bc3a7dc0eb0974b8bc2fdf1a989e474f6e582e5" ``` i'm still a noob when it comes to making templates, so i'm not sure if there's anything else that should be added to the template for the sake of completeness, but they do install succesfully and i got liquidctl running with these. i think the distfiles url in python3-colorlog could be shortened with the pypi site variable, but i'm not entirely sure.