Fixed revision number

This commit is contained in:
Cristian Porras 2015-06-22 14:30:45 -03:00
parent 03594141bc
commit 7f8b6daea4
2 changed files with 5 additions and 7 deletions

View file

@ -1,6 +1,6 @@
pkgbase = godot-git pkgbase = godot-git
pkgdesc = Godot Game Engine. pkgdesc = Godot Game Engine.
pkgver = 1.1._stable_37af8b4 pkgver = 1.1.r1488.e9bbb97
pkgrel = 1 pkgrel = 1
url = http://www.godotengine.org url = http://www.godotengine.org
arch = i686 arch = i686

View file

@ -3,7 +3,7 @@
_pkgname=godot _pkgname=godot
pkgname=${_pkgname}-git pkgname=${_pkgname}-git
pkgver=1.1._stable_37af8b4 pkgver=1.1.r1488.e9bbb97
pkgrel=1 pkgrel=1
pkgdesc="Godot Game Engine." pkgdesc="Godot Game Engine."
url="http://www.godotengine.org" url="http://www.godotengine.org"
@ -35,13 +35,11 @@ sha256sums=(
pkgver() { pkgver() {
cd "${srcdir}/${_pkgname}" cd "${srcdir}/${_pkgname}"
# pkgrel=4
_major=$(cat version.py|grep "major" | sed 's/major=//') _major=$(cat version.py|grep "major" | sed 's/major=//')
_minor=$(cat version.py|grep "minor" | sed 's/minor=//') _minor=$(cat version.py|grep "minor" | sed 's/minor=//')
_revision=$(cat version.py|grep revision|sed 's/revision="$Rev: //' | sed 's/ $"//') _revision=$(printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)")
_status=$(cat version.py|grep "status" | sed 's/status=//' | sed 's/"//g') echo "${_major}.${_minor}.${_revision}"
_git=$(git describe --always)
echo "${_major}.${_minor}.${_revision}_${_status}_${_git}"
} }
build() { build() {