New comment by sgn on void-packages repository https://github.com/void-linux/void-packages/pull/19569#issuecomment-594251448 Comment: I would do this instead: ``` diff --git a/srcpkgs/mstflint/template b/srcpkgs/mstflint/template index 7ebe2bcd27..2a449956a4 100644 --- a/srcpkgs/mstflint/template +++ b/srcpkgs/mstflint/template @@ -1,8 +1,9 @@ # Template file for 'mstflint' pkgname=mstflint -version=4.13.3 +version=4.13.3r2 revision=1 -subvers="-2" +_version=${version/r/-} +wrksrc=mstflint-${version%r*} build_style=gnu-configure configure_args="--enable-cs --enable-fw-mgr --enable-xml2" makedepends="boost-devel libcurl-devel libibmad-devel liblzma-devel libxml2-devel zlib-devel" @@ -10,7 +11,7 @@ short_desc="Open source version of Mellanox Firmware Tools" maintainer="Rich Gannon " license="GPL-2.0-or-later" homepage="https://github.com/Mellanox/mstflint" -distfiles="https://github.com/Mellanox/mstflint/releases/download/v${version}${subvers}/${pkgname}-${version}${subvers}.tar.gz" +distfiles="https://github.com/Mellanox/mstflint/releases/download/v${_version}/${pkgname}-${_version}.tar.gz" checksum=3abc918311fc07e4add7564879bd4a8def8ccfed40962f31682c75f2ee8a58d1 mstflint-devel_package() { ``` Anyway, cross-compile and musl build are broken.