archlinux-pkgbuilds/vim-arduino-syntax-git/PKGBUILD
Cedric Girard 7892999cde Add 'vim-arduino-syntax-git/' from commit 'cad0c6af1b61a5e2d5d9aeb3474b8b31bb630dc0'
git-subtree-dir: vim-arduino-syntax-git
git-subtree-mainline: 9aa8e2b33e
git-subtree-split: cad0c6af1b
2020-06-15 14:17:04 +02:00

26 lines
685 B
Bash

# Maintainer: FireZ <firez199984@gmail.com>
pkgname=vim-arduino-syntax-git
_pkgname=vim-arduino-syntax
pkgver=r17.83f766d
pkgrel=1
url=https://github.com/sudar/vim-arduino-syntax
pkgdesc="Arduino syntax files for Vim"
arch=(any)
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
do
install -d -m 755 ${pkgdir}/usr/share/vim/vimfiles/${dir}
install -D -m 644 ${dir}/* ${pkgdir}/usr/share/vim/vimfiles/${dir}
done
}