summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c13f41602aa5d1229a414cc1856945eea2008435 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# 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=6.10.16
pkgrel=1
pkgdesc='Tree explorer plugin for navigating the filesystem'
arch=('any')
url='https://github.com/preservim/nerdtree'
license=('custom:WTFPL')
depends=('neovim')
groups=('neovim-plugins')
install=nvim-doc.install
source=("$pkgname-$pkgver.zip::https://github.com/preservim/nerdtree/archive/${pkgver}.zip"
        'COPYING')
sha256sums=('8d851b06b460c26df5bc505ab25de0f67aff42effd35c70eaa52e1b5a0a844c8'
            '7637386b5f81e8a719ca336233149005e5fa28b5e6054ea7b67de49355b0ad40')


package() {
  local RUNTIME="${pkgdir}/usr/share/nvim/runtime"


  cd "${srcdir}/${pkgname#neovim-}-${pkgver}"

  install -d \
    "$RUNTIME/"{"autoload/nerdtree","doc","lib/nerdtree","nerdtree_plugin","plugin","syntax"}

  find "autoload" -type f -iname "*.vim" -exec install -Dvm644 "{}" \
    "$RUNTIME/{}" \;

  install -Dvm644 "doc/NERDTree.txt" "${RUNTIME}/doc/"

  install -Dvm644 nerdtree_plugin/{exec_menuitem,fs_menu}.vim \
    "${RUNTIME}/nerdtree_plugin/"

  find "lib/nerdtree" -type f -iname "*.vim" -exec install -vm644 "{}" \
    "${RUNTIME}/{}" \;

  install -Dvm644 plugin/NERD_tree.vim "${RUNTIME}/plugin/"
  install -Dvm644 syntax/nerdtree.vim "${RUNTIME}/syntax/"
  install -Dvm644 "LICENCE" "${pkgdir}/usr/share/licenses/$pkgname/LICENCE"
}

# vim:set ts=2 sw=2 et: