New comment by Duncaen on void-packages repository https://github.com/void-linux/void-packages/pull/46013#issuecomment-1713696567 Comment: ``` # Template file for 'gonic' pkgname=gonic version=0.15.2 revision=1 build_style=go go_import_path="go.senan.xyz/gonic" go_package="${go_import_path}/cmd/gonic" hostmakedepends="pkg-config" makedepends=" alsa-lib-devel sqlite-devel taglib-devel" depends="ffmpeg" short_desc="Music streaming server / subsonic server API implementation" maintainer="Duncaen " license="GPL-3.0-or-later" homepage="https://github.com/sentriz/gonic" distfiles="https://github.com/sentriz/gonic/archive/v${version}.tar.gz" checksum=f70580a3bf96b0e9144bfaae07d7f158fc7dc732eba240c191effb9c30d28edc system_accounts="_gonic" _gonic_homedir="/var/lib/gonic" make_dirs=" /var/cache/gonic 755 _gonic _gonic /var/db/gonic 755 _gonic _gonic /var/lib/gonic/music 755 _gonic _gonic /var/lib/gonic/podcast 755 _gonic _gonic" post_install() { vsv gonic } ``` `srcpkgs/gonic/files/gonic/run`: ``` #!/bin/sh [ -r ./conf ] && . ./conf : ${GONIC_CACHE_PATH:=/var/cache/gonic} : ${GONIC_DB_PATH:=/var/db/gonic/gonic.db} : ${GONIC_MUSIC_PATH:=/var/lib/gonic/music} : ${GONIC_PODCAST_PATH:=/var/lib/gonic/podcast} export GONIC_CACHE_PATH GONIC_DB_PATH GONIC_MUSIC_PATH GONIC_PODCAST_PATH exec chpst -u _gonic gonic $OPTS 2>&1 ```