New comment by zenny on void-packages repository https://github.com/void-linux/void-packages/issues/26349#issuecomment-731377318 Comment: > We don't use `pkgdir`, we use `DESTDIR`. Thanks @ericonr. I replaced all instances of `pkgdir` with `DESTDIR`, ``` # Template file for 'rhvoice' pkgname=rhvoice version=1.2.3 revision=1 wrksrc="RHVoice-${version}" build_style=scons depends="speech-dispatcher libpulseaudio" makedepends="scons portaudio libao" optdepends="'portaudio: for portaudio backend' 'libao: for ao backend'" backup="etc/RHVoice/RHVoice.conf" short_desc="Free and open source speech synthesizer for Russian and other languages" maintainer="/dev/null" license="GPL-3.0-or-later" homepage="https://github.com/Olga-Yakovleva/RHVoice" distfiles="https://github.com/Olga-Yakovleva/RHVoice/archive/${version}.tar.gz" checksum=d104f20dc75fcd133d21751a6e894d34b423e12e4784350b4b9573c727fb71cd build() { cd "$wrksrc/RHVoice-${version}" scons prefix="/usr" sysconfdir="/etc" CPPFLAGS="$CPPFLAGS" CCFLAGS="$CFLAGS" \ LINKFLAGS="$LDFLAGS" } package() { cd "$wrksrc/RHVoice-${version}" mkdir -p "${DESTDIR}/usr/lib/speech-dispatcher-modules" scons install DESTDIR="${DESTDIR}" prefix="/usr" sysconfdir="/etc" \ CPPFLAGS="$CPPFLAGS" CCFLAGS="$CFLAGS" LINKFLAGS="$LDFLAGS" ln -s "/usr/bin/sd_rhvoice" "${DESTDIR}/usr/lib/speech-dispatcher-modules/sd_rhvoice" ``` Also, appended following 3 lines to `common/shlibs` ``` $ rg libRHVoice common/shlibs 3997:libRHVoice.so.5 rhvoice-1.2.3_1 3998:libRHVoice_audio.so.2 rhvoice-1.2.3_1 3999:libRHVoice_core.so.4 rhvoice-1.2.3_1 ``` The package gets built, but it does not behave as expected (no `RHVoice` binary nor `sd_rhvoice` installed) after running ` $ sudo xbps-install --repository=hostdir/binpkgs rhvoice`. No errors either.