diff options
author | lmartinez-mirror | 2021-04-18 21:49:24 -0500 |
---|---|---|
committer | lmartinez-mirror | 2021-04-18 21:49:24 -0500 |
commit | c0df8a205e20bd55d7a50488fc24a2cb61f52bf8 (patch) | |
tree | 00d79ada0a6491d49086d9e711a91a384333f94c /PKGBUILD | |
download | aur-vim-git-messenger-git.tar.gz |
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..eb586a218ab9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Luis Martinez <luis dot martinez at tuta dot io> +pkgname=vim-git-messenger-git +pkgver=r304.866b3ed +pkgrel=1 +pkgdesc="Vim plugin that reveals commit messages under the cursor" +arch=('any') +url="https://github.com/rhysd/git-messenger.vim" +license=('MIT') +groups=('vim-plugins') +depends=('vim-plugin-runtime') +makedepends=('git') +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +source=("$pkgname::git+$url") +md5sums=('SKIP') + +pkgver() { + cd "$pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd "$pkgname" + find autoload doc plugin syntax \ + -type f -exec install -Dvm 644 '{}' "$pkgdir/usr/share/vim/vimfiles/{}" \; + install -Dvm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" + install -Dvm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/" +} |