New comment by Chocimier on void-packages repository https://github.com/void-linux/void-packages/pull/27651#issuecomment-758281899 Comment: Something like that maybe. site="https://github.com/OpenPrinting/foomatic-db" version="${version:0:4}.${version:4:2}.${version:6:2}" pattern="relative-time datetime=\"\K\d{4}-\d{2}-\d{2}" We usually use date of commit as version, but 2021 is fine here, to avoid going back.