correct pkgver deoplete--git

This commit is contained in:
Trent Palmer 2018-11-17 23:57:59 -08:00
parent e9bb84a11f
commit 6e6fdb55c4
2 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -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() {