summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c5944eb9657c158b76585adac149af80f8857bd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Maintainer: Maxwell Pray <synthead@gmail.com>

_pkgname=vim-local-history
pkgname=$_pkgname-git
pkgver=r4.db671dc
pkgrel=1
pkgdesc="Use viminfo file relative to current working directory."
arch=("any")
url="https://github.com/maxboisvert/vim-local-history"
license=("GPL3")
source=("git+https://github.com/maxboisvert/vim-local-history.git")
md5sums=("SKIP")

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

package() {
  install -Dm 644 "$srcdir/$_pkgname/plugin/vim-local-history.vim" "$pkgdir/usr/share/vim/vimfiles/plugin/vim-local-history.vim"
}