New comment by ericonr on void-packages repository https://github.com/void-linux/void-packages/pull/23747#issuecomment-662820521 Comment: So, @the-maldridge has to accept this beta version first. And I cleaned it up a bit and corrected some things for you: ``` diff --git a/srcpkgs/stepmania/template b/srcpkgs/stepmania/template index b381a7f852..d5b78e5939 100644 --- a/srcpkgs/stepmania/template +++ b/srcpkgs/stepmania/template @@ -2,13 +2,13 @@ pkgname=stepmania version=5.1.0.b2 revision=1 +# compilation errors with musl archs="i686 x86_64" -# Upstream has stated that only x86 hardware can meed the performance constraints and that musl is not supported due to interop issues with Windows wrksrc=${pkgname}-${version%.*}-${version##*.} build_style=cmake -cmake_builddir="Build" -hostmakedepends="nasm yasm pkg-config git" -makedepends="libmad-devel libvorbis-devel pcre-devel libjpeg-turbo-devel alsa-lib-devel libXrandr-devel libva-devel glew-devel pulseaudio-devel" +hostmakedepends="yasm pkg-config git" +makedepends="libmad-devel libvorbis-devel pcre-devel libjpeg-turbo-devel + alsa-lib-devel libXrandr-devel libva-devel glew-devel pulseaudio-devel" short_desc="Advanced rhythm game" maintainer="Jason Manley " license="MIT" @@ -16,19 +16,19 @@ homepage="http://www.stepmania.com/" distfiles="https://github.com/stepmania/stepmania/archive/v${version%.*}-${version##*.}.tar.gz" checksum=2e311df9b661ba287b046ce377eb0b41e426b73e169841df99fc9fe2baa89310 -post_extract() { - echo ${wrksrc} - vsed -i 's/PULSE_FOUND/PULSEAUDIO_FOUND/g' ${wrksrc}/StepmaniaCore.cmake +post_patch() { + vsed -i 's/PULSE_FOUND/PULSEAUDIO_FOUND/g' StepmaniaCore.cmake +} + +post_install() { for i in 16 22 24 32 36 48 64 72 96 128 192 256 do - vinstall ${wrksrc}/icons/hicolor/${i}x${i}/apps/stepmania-ssc.png 644 usr/share/icons/hicolor/${i}x${i}/apps stepmania-ssc.png + vinstall icons/hicolor/${i}x${i}/apps/stepmania-ssc.png 644 \ + usr/share/icons/hicolor/${i}x${i}/apps stepmania-ssc.png done - vinstall ${wrksrc}/stepmania.desktop 644 usr/share/applications stepmania.desktop -} -post_install() { + vinstall stepmania.desktop 644 usr/share/applications stepmania.desktop vlicense Docs/Licenses.txt - mkdir -p ${DESTDIR}/usr/bin - cd ${DESTDIR} - ln -sf ../../opt/${pkgname}-${version%.*.*}/stepmania usr/bin/ + vmkdir usr/bin + ln -sf ../../opt/${version%.*.*}/stepmania ${DESTDIR}/usr/bin/ } ``` If you want, the final template looks like: ``` # Template file for 'stepmania' pkgname=stepmania version=5.1.0.b2 revision=1 # compilation errors with musl archs="i686 x86_64" wrksrc=${pkgname}-${version%.*}-${version##*.} build_style=cmake hostmakedepends="yasm pkg-config git" makedepends="libmad-devel libvorbis-devel pcre-devel libjpeg-turbo-devel alsa-lib-devel libXrandr-devel libva-devel glew-devel pulseaudio-devel" short_desc="Advanced rhythm game" maintainer="Jason Manley " license="MIT" homepage="http://www.stepmania.com/" distfiles="https://github.com/stepmania/stepmania/archive/v${version%.*}-${version##*.}.tar.gz" checksum=2e311df9b661ba287b046ce377eb0b41e426b73e169841df99fc9fe2baa89310 post_patch() { vsed -i 's/PULSE_FOUND/PULSEAUDIO_FOUND/g' StepmaniaCore.cmake } post_install() { for i in 16 22 24 32 36 48 64 72 96 128 192 256 do vinstall icons/hicolor/${i}x${i}/apps/stepmania-ssc.png 644 \ usr/share/icons/hicolor/${i}x${i}/apps stepmania-ssc.png done vinstall stepmania.desktop 644 usr/share/applications stepmania.desktop vlicense Docs/Licenses.txt vmkdir usr/bin ln -sf ../../opt/${version%.*.*}/stepmania ${DESTDIR}/usr/bin/ } ``` It's probably `nocross=yes` instead of restricting arches, but I don't have an easy way of testing that.