summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1cb6ce27c9dcb33bac9b83509f9b83e54a02089c (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
# Maintainer: Adam S Levy <adam@aslevy.com>
pkgname=vim-jq-git
_pkgname=${pkgname%-git}
pkgver=r20.99d55a3
pkgrel=1
pkgdesc="Syntax highlighting for jq script files"
arch=('any')
url="https://github.com/vito-c/jq.vim"
depends=('vim')
makedepends=('git')
provides=("$_pkgname")
conflicts=("$_pkgname")
options=('!strip')
source=("$_pkgname::git+https://github.com/vito-c/jq.vim")
sha256sums=('SKIP')

pkgver() {
	cd "$srcdir/$_pkgname"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
        local vimdir="$pkgdir/usr/share/vim/vimfiles"
        install --directory "$vimdir"
        for dir in ftdetect/ syntax/; do
                cp --recursive "${dir}" "$vimdir/"
        done
}