summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis Martinez2021-06-14 11:49:10 -0500
committerLuis Martinez2021-06-14 11:49:10 -0500
commit06c7f5bc8bdcb00bbcd17e5bb46e885a3b954833 (patch)
treebade9335552e096e157766afdb4701af46ede857
downloadaur-06c7f5bc8bdcb00bbcd17e5bb46e885a3b954833.tar.gz
initial commit
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD26
2 files changed, 41 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1dbb3581a16
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = neovim-cmd-parser-git
+ pkgdesc = Command line parser for Neovim plugin authors
+ pkgver = r10.70813af
+ pkgrel = 1
+ url = https://github.com/winston0410/cmd-parser.nvim
+ arch = any
+ groups = neovim-plugins
+ license = unknown
+ makedepends = git
+ provides = neovim-cmd-parser
+ conflicts = neovim-cmd-parser
+ source = neovim-cmd-parser-git::git+https://github.com/winston0410/cmd-parser.nvim
+ sha256sums = SKIP
+
+pkgname = neovim-cmd-parser-git
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/"
+}