fix pkgver

This commit is contained in:
FireZ 2015-12-04 20:18:48 +08:00
parent 20349c6c42
commit cad0c6af1b
2 changed files with 7 additions and 2 deletions

View file

@ -1,6 +1,6 @@
pkgbase = vim-arduino-syntax-git
pkgdesc = Arduino syntax files for Vim
pkgver = 83f766d
pkgver = r17.83f766d
pkgrel = 1
url = https://github.com/sudar/vim-arduino-syntax
arch = any

View file

@ -2,7 +2,7 @@
pkgname=vim-arduino-syntax-git
_pkgname=vim-arduino-syntax
pkgver=83f766d
pkgver=r17.83f766d
pkgrel=1
url=https://github.com/sudar/vim-arduino-syntax
pkgdesc="Arduino syntax files for Vim"
@ -11,6 +11,11 @@ depends=(vim)
source=("git://github.com/sudar/vim-arduino-syntax.git")
md5sums=(SKIP)
pkgver() {
cd "${srcdir}/${_pkgname}"
printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "${srcdir}/${_pkgname}"
for dir in ftdetect indent syntax