From e06cf08e31ba1e2c796912fc337e69bb5ab0e281 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 8 Oct 2018 16:23:51 +0200 Subject: openttd-git: do not use checkout date but commit date --- openttd-git/PKGBUILD | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) mode change 100755 => 100644 openttd-git/PKGBUILD diff --git a/openttd-git/PKGBUILD b/openttd-git/PKGBUILD old mode 100755 new mode 100644 index 480336d65..5fc195596 --- a/openttd-git/PKGBUILD +++ b/openttd-git/PKGBUILD @@ -54,7 +54,11 @@ prepare() { cd "${srcdir}/${pkgname}" - ISODATE=$(find {src,bin} -type f -printf "%TY%Tm%Td\n" | sort -n | tail -n1) + ISODATE=$( + date -d@$( + git log -n1 --pretty=format:%ct + ) +'%Y%m%d' + ) HASH=$(find {src,bin} -type f -exec sha512sum {} \; | sort | sha512sum - | cut -d' ' -f1) SHORTHASH=$(echo ${HASH} | cut -c1-8) printf '%s\t%s\t%s\t%s\n' \ -- cgit v1.2.3-70-g09d2