fix pkgver
This commit is contained in:
parent
20349c6c42
commit
cad0c6af1b
2 changed files with 7 additions and 2 deletions
2
.SRCINFO
2
.SRCINFO
|
@ -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
|
||||
|
|
7
PKGBUILD
7
PKGBUILD
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue