diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7b82ccf3da3b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +pkgname=neovim-surround-opt-git +pkgver=109.5970688 +_pkgname=surround +pkgrel=1 +pkgdesc='Provides mappings to easily delete, change, and add paired "surroundings."' +arch=('any') +url="https://github.com/tpope/vim-${_pkgname}" +license=('custom:vim') +depends=('neovim') +makedepends=('git') +source=("git+${url}.git") +sha256sums=('SKIP') + + +pkgver() { + + cd "${srcdir}/vim-${_pkgname}" + + echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" + +} + +package() { + + cd "${srcdir}/vim-${_pkgname}" + + local _installpath="usr/local/share/nvim/site/pack/${_pkgname}/opt/${_pkgname}/" + + install -dvm755 "${pkgdir}/${_installpath}" + + cp -rvt "${pkgdir}/${_installpath}" doc plugin + +} |