diff --git a/PKGBUILD b/PKGBUILD index c63e6a4..5fbe8dd 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -4,7 +4,8 @@ pkgdesc='Nintendo DS emulator' url='http://desmume.org/' arch=('i686' 'x86_64') license=('GPL') -pkgver=0.9.11.r800.e29e825d +_relver=0.9.11 +pkgver=${_relver}.r800.e29e825d pkgrel=2 depends=('gtkglext' 'libglade' @@ -29,7 +30,7 @@ _builddir="${_pkgname}/src/frontend/posix" pkgver() { cd "${srcdir}/${_pkgname}" - git describe --long | sed 's/v//;s/-/./g' + echo ${_relver}.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD) } prepare(){