diff options
-rw-r--r-- | .SRCINFO | 11 | ||||
-rw-r--r-- | PKGBUILD | 21 |
2 files changed, 32 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7ba50a135484 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,11 @@ +pkgbase = vim-local-history-git + pkgdesc = Use viminfo file relative to current working directory. + pkgver = r4.db671dc + pkgrel = 1 + url = https://github.com/maxboisvert/vim-local-history + arch = any + license = GPL3 + source = git+https://github.com/maxboisvert/vim-local-history.git + md5sums = SKIP + +pkgname = vim-local-history-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c5944eb9657c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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" +} |