From 2645961e2882a1c180a5b1d0f0cf2f006cbd2c3e Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 3 May 2018 09:23:36 +0200 Subject: openttd-git: 28093.228f8fba5-1 -> 28093.228f8fba5-2 --- openttd-git/PKGBUILD | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'openttd-git') diff --git a/openttd-git/PKGBUILD b/openttd-git/PKGBUILD index 7e0cc9544..1db834043 100755 --- a/openttd-git/PKGBUILD +++ b/openttd-git/PKGBUILD @@ -2,7 +2,7 @@ pkgname=openttd-git pkgver=28093.228f8fba5 _commit=${pkgver#*.} -pkgrel=1 +pkgrel=2 pkgdesc="A FOSS clone of Transport Tycoon Deluxe." arch=('x86_64' 'i686') url="http://www.openttd.org" @@ -54,6 +54,19 @@ prepare() { cd "${srcdir}/${pkgname}" + ISODATE=$(find {src,bin} -type f -printf "%TY%Tm%Td\n" | sort -n | tail -n1) + 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' \ + "${ISODATE}-ewe-g${SHORTHASH}" \ + "${ISODATE}" \ + "0" \ + "${HASH}" \ + > .ottdrev + sed -i ' + s,"\$ROOT_DIR/\.git","/dev/does/not/exist", + ' findversion.sh + git apply < ${srcdir}/everything.patch sed -i ' s/readme\.txt/README.md/g -- cgit v1.2.3-70-g09d2