summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fe418ab4814c3680550c3b2f8efcc2b51c32e19e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Maintainer: Cedric Girard <cgirard [dot] archlinux [at] valinor [dot] fr>
# Contributor: FireZ <firez199984@gmail.com>

pkgname=vim-arduino-syntax-git
_pkgname=vim-arduino-syntax
pkgver=r19.adbc477
pkgrel=1
url=https://github.com/sudar/vim-arduino-syntax
pkgdesc="Arduino syntax files for Vim"
license=(custom:vim)
arch=(any)
makedepends=(git)
depends=(vim)
source=("git+https://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
}