add day mod to version number to cover arch complaining about downgrades

master
Adasauce 5 years ago
parent 6e6babf313
commit 32b3e5e72b
  1. 3
      PKGBUILD

@ -29,7 +29,8 @@ pkgver() {
cd $(find "$srcdir" -maxdepth 1 -type d -name 'scst*')
local ver="$(git rev-parse --short HEAD)"
printf "${_version}.%s" "${ver//[[:alpha:]]}"
local days=$(( ($(date --utc +%s) - $(date -d "2019-01-01 UTC" +%s)) / (60*60*24) ))
printf "${_version}.%s.%s" "${days}" "${ver//[[:alpha:]]}"
}
_base() {

Loading…
Cancel
Save