New issue by haemka on void-packages repository https://github.com/void-linux/void-packages/issues/22006 Description: # System * xuname: `Void 5.6.11_1 x86_64 AuthenticAMD uptodate rrrmFFFF` * package: xdotool 3.20160805.1_2 ### Expected behavior `xdotool -v` should report correct version (currently `3.20160805.1`) ### Actual behavior `xdotool -v` reports `xdotool version 3.20191225.1` ### Steps to reproduce the behavior Run `xdotool -v` ### Explanation The upstream repository of xdotool contains multiple release archives which differ slightly ([1](https://github.com/jordansissel/xdotool/releases/download/v3.20160805.1/xdotool-3.20160805.1.tar.gz) and [2](https://github.com/jordansissel/xdotool/archive/v3.20160805.1.tar.gz)) The link for archive 2 is used in the srcpkgs template, but this archive is missing the `VERSION` file, which is read by `version.sh` called from ` Makefile`. By changing the archive download link in the packages template and rebuilding the package xdotool shows the correct version. ```diff diff --git a/srcpkgs/xdotool/template b/srcpkgs/xdotool/template index 7734b38845..a3366c7844 100644 --- a/srcpkgs/xdotool/template +++ b/srcpkgs/xdotool/template @@ -1,7 +1,7 @@ # Template file for 'xdotool' pkgname=xdotool version=3.20160805.1 -revision=2 +revision=3 build_style=gnu-makefile make_build_target="all" make_install_args="INSTALLMAN=$DESTDIR/usr/share/man" @@ -11,8 +11,8 @@ short_desc="Command-line X11 automation tool" maintainer="Leah Neukirchen " license="BSD-3-Clause" homepage="https://github.com/jordansissel/xdotool" -distfiles="https://github.com/jordansissel/${pkgname}/archive/v${version}.tar.gz" -checksum=ddafca1239075c203769c17a5a184587731e56fbe0438c09d08f8af1704e117a +distfiles="https://github.com/jordansissel/${pkgname}/releases/download/v${version}/xdotool-${version}.tar.gz" +checksum=35be5ff6edf0c620a0e16f09ea5e101d5173280161772fca18657d83f20fcca8 CFLAGS="-std=c99" xdotool-devel_package() { ``` Leads to a package where `xdotool -v` shows `xdotool version 3.20160805.1`