summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD26
1 files changed, 26 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..001f332c16e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,26 @@
+# Maintainer: Luis Martinez <luis dot martinez at tuta dot io>
+
+pkgname=neovim-cmd-parser-git
+pkgver=r10.70813af
+pkgrel=1
+pkgdesc="Command line parser for Neovim plugin authors"
+arch=('any')
+url="https://github.com/winston0410/cmd-parser.nvim"
+license=('unknown')
+groups=('neovim-plugins')
+makedepends=('git')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+source=("$pkgname::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 lua -type f -exec install -Dvm 644 '{}' "$pkgdir/usr/share/nvim/runtime/{}" \;
+ install -Dvm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
+}