summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNBonaparte2019-06-07 15:39:27 -0700
committerNBonaparte2019-06-07 15:39:27 -0700
commit4dfb5545bafa825b498ef1a5460f01b4b4f98aa6 (patch)
tree45d2126234865064bd93f346ca2d4f51a8988a1c
downloadaur-vim-zig-git.tar.gz
init package
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD33
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..bacd43dea2f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = vim-zig-git
+ pkgdesc = Vim configuration for Zig
+ pkgver = r76.d5b47fe
+ pkgrel = 1
+ epoch = 1
+ url = https://github.com/ziglang/zig.vim
+ arch = any
+ groups = vim-plugins
+ license = MIT
+ makedepends = git
+ depends = vim
+ optdepends = zig
+ provides = vim-zig
+ conflicts = vim-zig
+ source = git+https://github.com/ziglang/zig.vim.git
+ md5sums = SKIP
+
+pkgname = vim-zig-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8db8edb2887
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: NBonaparte <nbonaparte@protonmail.com>
+
+_name='zig.vim'
+pkgname=vim-zig-git
+pkgver=r76.d5b47fe
+pkgrel=1
+epoch=1
+pkgdesc="Vim configuration for Zig"
+arch=('any')
+url='https://github.com/ziglang/zig.vim'
+license=('MIT')
+depends=('vim')
+optdepends=('zig')
+makedepends=('git')
+conflicts=('vim-zig')
+provides=('vim-zig')
+groups=('vim-plugins')
+source=("git+https://github.com/ziglang/${_name}.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd $srcdir/"${_name}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package() {
+ cd $srcdir/"${_name}"
+ _installpath="${pkgdir}/usr/share/vim/vimfiles"
+ mkdir -p "${_installpath}"
+ cp -r autoload ftdetect ftplugin plugin syntax "${_installpath}"
+ install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+