From 32b3e5e72b948a0ce49d9feebf7e9cfa24b249d0 Mon Sep 17 00:00:00 2001 From: Adasauce Date: Wed, 24 Jul 2019 14:49:02 -0300 Subject: [PATCH] add day mod to version number to cover arch complaining about downgrades --- PKGBUILD | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PKGBUILD b/PKGBUILD index 753e8aa..8e42947 100644 --- a/PKGBUILD +++ b/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() {