diff options
author | Erich Eckner <git@eckner.net> | 2018-05-03 09:23:36 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-05-03 09:23:36 +0200 |
commit | 2645961e2882a1c180a5b1d0f0cf2f006cbd2c3e (patch) | |
tree | cb85917b99903c8bb7859677cd29e110c162ba90 | |
parent | e371d9b82099d78a26975d1345f8b5bdd23c1e27 (diff) | |
download | archlinuxewe-2645961e2882a1c180a5b1d0f0cf2f006cbd2c3e.tar.xz |
openttd-git: 28093.228f8fba5-1 -> 28093.228f8fba5-2
-rwxr-xr-x | openttd-git/PKGBUILD | 15 |
1 files changed, 14 insertions, 1 deletions
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 |