summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 876d738f8d00ffff8ebb27df96f956a979769a83 (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: lmartinez
pkgname=vim-hexokinase-git
_pkgname=${pkgname%-git}
pkgver=r112.9f7f4ba
pkgrel=1
pkgdesc="(Neo)Vim plugin for asynchronously displaying hex colors"
arch=('any')
url="https://github.com/rrethy/vim-hexokinase"
license=('GPL')
groups=('vim-plugins')
depends=('hexokinase')
optdepends=('neovim: virtual text and sign_column support'
            'vim: sign_column support (compiled with +signs)')
makedepends=('git')
source=("git+$url")
sha256sums=('SKIP')

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

package() {
  cd "$_pkgname"
  find autoload doc lua plugin -type f -exec install -Dm644 '{}' \
    "$pkgdir/usr/share/vim/vimfiles/{}" \;
}