summaryrefslogtreecommitdiff
path: root/openttd-git/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-11-01 13:28:54 +0100
committerErich Eckner <git@eckner.net>2018-11-01 13:28:54 +0100
commit6a0f4e0b1765d6817aba8a14b8a5c2779c5bb7be (patch)
tree35d299cc65655ad35ec91cd0e4e8314bdefb6ad1 /openttd-git/PKGBUILD
parenta29ccc6de3bfbb9377fb8ceac84adaab798e2e12 (diff)
downloadarchlinuxewe-6a0f4e0b1765d6817aba8a14b8a5c2779c5bb7be.tar.xz
openttd-git: fix pkgver(); always check out the $_commit
Diffstat (limited to 'openttd-git/PKGBUILD')
-rw-r--r--openttd-git/PKGBUILD4
1 files changed, 2 insertions, 2 deletions
diff --git a/openttd-git/PKGBUILD b/openttd-git/PKGBUILD
index 14b2f522d..1737882e4 100644
--- a/openttd-git/PKGBUILD
+++ b/openttd-git/PKGBUILD
@@ -32,7 +32,7 @@ replaces=()
backup=()
options=()
source=(
- "${pkgname}::git://github.com/OpenTTD/OpenTTD.git" #commit=${_commit}"
+ "${pkgname}::git://github.com/OpenTTD/OpenTTD.git#commit=${_commit}"
"everything.patch"
"clipboard.grf"
)
@@ -46,7 +46,7 @@ pkgver() {
$(git -C "${srcdir}/${pkgname}" rev-list --count master ^f84ad5f7c) + 28004
))" \
"$(
- git -C "${srcdir}/${pkgname}" rev-parse --short master
+ git -C "${srcdir}/${pkgname}" rev-parse --short=9 master
)"
}