From 9d77faaf465ba9c913bab8290e7aee91d3c008b1 Mon Sep 17 00:00:00 2001 From: Alison Watson Date: Mon, 22 Jul 2019 09:54:37 -0400 Subject: [PATCH] fix pkgver --- PKGBUILD | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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(){