archlinux-pkgbuilds/vim-arduino-syntax-git/PKGBUILD

30 lines
807 B
Text
Raw Permalink Normal View History

# Maintainer: Cedric Girard <cgirard [dot] archlinux [at] valinor [dot] fr>
# Contributor: FireZ <firez199984@gmail.com>
2015-12-04 11:52:15 +01:00
pkgname=vim-arduino-syntax-git
_pkgname=vim-arduino-syntax
pkgver=r19.adbc477
2015-12-04 11:52:15 +01:00
pkgrel=1
2015-12-04 11:57:28 +01:00
url=https://github.com/sudar/vim-arduino-syntax
pkgdesc="Arduino syntax files for Vim"
license=(custom:vim)
2015-12-04 11:52:15 +01:00
arch=(any)
makedepends=(git)
2015-12-04 11:52:15 +01:00
depends=(vim)
source=("git+https://github.com/sudar/vim-arduino-syntax.git")
2015-12-04 11:52:15 +01:00
md5sums=(SKIP)
2015-12-04 13:18:48 +01:00
pkgver() {
cd "${srcdir}/${_pkgname}"
printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
2015-12-04 11:52:15 +01:00
package() {
cd "${srcdir}/${_pkgname}"
for dir in ftdetect indent syntax
do
install -d -m 755 ${pkgdir}/usr/share/vim/vimfiles/${dir}
install -D -m 644 ${dir}/* ${pkgdir}/usr/share/vim/vimfiles/${dir}
done
}