From 6e6fdb55c4ea8348886ea00c08dcdcd8c4f05652 Mon Sep 17 00:00:00 2001 From: Trent Palmer Date: Sat, 17 Nov 2018 23:57:59 -0800 Subject: [PATCH] correct pkgver deoplete--git --- deoplete-git/.SRCINFO | 2 +- deoplete-git/PKGBUILD | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/deoplete-git/.SRCINFO b/deoplete-git/.SRCINFO index 4a2d1c5..06a1058 100644 --- a/deoplete-git/.SRCINFO +++ b/deoplete-git/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = deoplete-git pkgdesc = deoplete completion plugin for neovim - pkgver = 4.1.r17.g04ea041 + pkgver = r1493.04ea041 pkgrel = 1 url = https://github.com/Shougo/deoplete.nvim install = deoplete.install diff --git a/deoplete-git/PKGBUILD b/deoplete-git/PKGBUILD index bf9a9e7..00c0451 100644 --- a/deoplete-git/PKGBUILD +++ b/deoplete-git/PKGBUILD @@ -11,7 +11,7 @@ _neovim="n" _name='deoplete' pkgname="${_name}-git" -pkgver=4.1.r17.g04ea041 +pkgver=r1493.04ea041 pkgrel=1 pkgdesc="deoplete completion plugin for neovim" arch=('any') @@ -34,9 +34,10 @@ source=("${_name}::${url//https/git}") noextract=() md5sums=('SKIP') + pkgver() { - cd "${srcdir}/${_name}" - git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' + cd "${srcdir}/${_name}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } package() {