diff options
author | Joost Bremmer | 2016-10-13 17:25:37 +0200 |
---|---|---|
committer | Joost Bremmer | 2016-10-13 17:26:34 +0200 |
commit | 3df52b2e7396a68c0a2f33770a88e0f9921b4b49 (patch) | |
tree | 97d64e460d97f22b8de9c4f61fa28fac6d738881 | |
download | aur-3df52b2e7396a68c0a2f33770a88e0f9921b4b49.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | .gitignore | 19 | ||||
-rw-r--r-- | COPYING | 14 | ||||
-rw-r--r-- | PKGBUILD | 36 | ||||
-rw-r--r-- | nvim-doc.install | 14 |
5 files changed, 100 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..30a60a0c66b1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = neovim-nerdtree + pkgdesc = Tree explorer plugin for navigating the filesystem + pkgver = 5.0.0 + pkgrel = 1 + url = http://www.vim.org/scripts/script.php?script_id=1658 + install = nvim-doc.install + arch = any + groups = neovim-plugins + license = custom:WTFPL + depends = neovim + source = neovim-nerdtree-5.0.0.zip::http://www.vim.org/scripts/download_script.php?src_id=17123 + source = COPYING + sha256sums = 16e8e0684d5964ececa47cbd4ac714d3ccf34247559af534f4b512baf5e0bf56 + sha256sums = 7637386b5f81e8a719ca336233149005e5fa28b5e6054ea7b67de49355b0ad40 + +pkgname = neovim-nerdtree + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..7123c0a23024 --- /dev/null +++ b/.gitignore @@ -0,0 +1,19 @@ +# package src/pkg archives, downloaded sources +*.tar* +*.tgz +*.zip + +# signed sources +*.asc +*.sig + +# subfolders, e.g. source or built package trees, vcs +*/**/ +!neovim-plugins/* +# backup files +*~ +*.bak +pkg +src +*xpi +*tar* diff --git a/COPYING b/COPYING new file mode 100644 index 000000000000..5a8e332545f6 --- /dev/null +++ b/COPYING @@ -0,0 +1,14 @@ + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2004 Sam Hocevar <sam@hocevar.net> + + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2870fac0ae0a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Joost Bremmer <toost.b@gmail.com> +# Contributor: Alexander Rødseth <rodseth@gmail.com> +# Contributor: Andrea Scarpino <andrea@archlinux.org> +# Contributor: Kwpolska <kwpolska@gmail.com> +# Contributor: Thomas Dziedzic < gostrc at gmail > +# Contributor: Laszlo Papp <djszapi @ gmail at com> + +pkgname=neovim-nerdtree +pkgver=5.0.0 +_scriptid=17123 +pkgrel=1 +pkgdesc='Tree explorer plugin for navigating the filesystem' +arch=('any') +url='http://www.vim.org/scripts/script.php?script_id=1658' +license=('custom:WTFPL') +depends=('neovim') +groups=('neovim-plugins') +install='nvim-doc.install' +source=("$pkgname-$pkgver.zip::http://www.vim.org/scripts/download_script.php?src_id=$_scriptid" + 'COPYING') +sha256sums=('16e8e0684d5964ececa47cbd4ac714d3ccf34247559af534f4b512baf5e0bf56' + '7637386b5f81e8a719ca336233149005e5fa28b5e6054ea7b67de49355b0ad40') + +package() { + install -d \ + "$pkgdir/usr/share/nvim/runtime/"{doc,nerdtree_plugin,plugin,syntax} + install -m644 doc/NERD_tree.txt "$pkgdir/usr/share/nvim/runtime/doc/" + install -m644 nerdtree_plugin/{exec_menuitem,fs_menu}.vim \ + "$pkgdir/usr/share/nvim/runtime/nerdtree_plugin/" + install -m644 plugin/NERD_tree.vim "$pkgdir/usr/share/nvim/runtime/plugin/" + install -m644 syntax/nerdtree.vim "$pkgdir/usr/share/nvim/runtime/syntax/" + install -D -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +# getver: github.com/scrooloose/nerdtree +# vim:set ts=2 sw=2 et: diff --git a/nvim-doc.install b/nvim-doc.install new file mode 100644 index 000000000000..79795d84c37b --- /dev/null +++ b/nvim-doc.install @@ -0,0 +1,14 @@ +post_install() { + echo -n "Updating neovim help tags..." + /usr/bin/nvim --noplugins -u NONE -U NONE \ + --cmd ":helptags /usr/share/nvim/runtime/doc" --cmd ":q" > /dev/null 2>&1 + echo "done." +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install +} |