summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAlexandre Macabies2018-11-17 20:13:59 +0100
committerAlexandre Macabies2018-11-17 20:13:59 +0100
commit73e3250941ae381fe3fcc6c372120297493fcaaf (patch)
tree4490ad72110be193a32f2df60b6e035817c3c134 /PKGBUILD
downloadaur-vim-nix-git.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9eaeebab120
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Alexandre `zopieux` Macabies <web+oss@zopieux.com>
+
+pkgname=vim-nix-git
+pkgver=r83.be0c6bb
+pkgrel=1
+pkgdesc="Nix support for Vim"
+arch=('any')
+url='https://github.com/LnL7/vim-nix'
+license=('MIT')
+depends=('vim')
+source=('vim-nix::git+git://github.com/LnL7/vim-nix.git')
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}"
+ declare -r vimfiles="$pkgdir/usr/share/vim/vimfiles"
+ for component in compiler ftdetect ftplugin indent plugin syntax
+ do
+ for file in $component/*
+ do
+ install -D -m644 "$file" "$vimfiles/$file"
+ done
+ done
+}