summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8db8edb2887c9c1b1d79bb65634cdf44830c961c (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
30
31
32
33
# Maintainer: NBonaparte <nbonaparte@protonmail.com>

_name='zig.vim'
pkgname=vim-zig-git
pkgver=r76.d5b47fe
pkgrel=1
epoch=1
pkgdesc="Vim configuration for Zig"
arch=('any')
url='https://github.com/ziglang/zig.vim'
license=('MIT')
depends=('vim')
optdepends=('zig')
makedepends=('git')
conflicts=('vim-zig')
provides=('vim-zig')
groups=('vim-plugins')
source=("git+https://github.com/ziglang/${_name}.git")
md5sums=('SKIP')

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

package() {
  cd $srcdir/"${_name}"
  _installpath="${pkgdir}/usr/share/vim/vimfiles"
  mkdir -p "${_installpath}"
  cp -r autoload ftdetect ftplugin plugin syntax "${_installpath}"
  install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}