New comment by paper42 on void-packages repository https://github.com/void-linux/void-packages/pull/31333#issuecomment-866405339 Comment: A template like this works, but I am not sure if it's pretty enough. ``` # Template file for 'noisetorch' pkgname=noisetorch version=0.11.3 revision=1 wrksrc=NoiseTorch-${version} build_style=go go_ldflags="-X main.version=${version}" go_import_path="." depends="polkit" short_desc="Real-time microphone noise suppression on Linux" maintainer="Soc Virnyl S. Estela " license="GPL-3.0-or-later" homepage="https://github.com/lawl/NoiseTorch" distfiles="${homepage}/archive/${version}.tar.gz" checksum=b67155211278affc72f15d0ded9da560524e7bb0659012f9d41e69b531b9265c pre_build() { make rnnoise GOARCH= go build scripts/embedlicenses.go ./embedlicenses } post_install() { vinstall assets/noisetorch.desktop 644 usr/share/applications vinstall assets/icon/noisetorch.png 644 usr/share/icons/hicolor/256x256/apps } ```