[arch-commits] Commit in vim-nerdtree/trunk (PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Mon Sep 30 21:07:49 UTC 2019


    Date: Monday, September 30, 2019 @ 21:07:49
  Author: anthraxx
Revision: 512291

upgpkg: vim-nerdtree 6.1.0-2 FS#63968 fix CHANGELOG.md location regression

Modified:
  vim-nerdtree/trunk/PKGBUILD

----------+
 PKGBUILD |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-30 20:30:35 UTC (rev 512290)
+++ PKGBUILD	2019-09-30 21:07:49 UTC (rev 512291)
@@ -7,7 +7,7 @@
 
 pkgname=vim-nerdtree
 pkgver=6.1.0
-pkgrel=1
+pkgrel=2
 pkgdesc='Tree explorer plugin for navigating the filesystem'
 url='https://github.com/scrooloose/nerdtree'
 arch=('any')
@@ -17,11 +17,17 @@
 source=(https://github.com/scrooloose/nerdtree/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
 sha512sums=('ebafb5797a83bf6efd12553c103999b836044ba2bfe6aa06b2c94aae09cfef8a9ffd8c494dd75258fa1c78b54c9ef3cc6c90bef22c1aa60e517441bef39aaae5')
 
+prepare() {
+  cd nerdtree-${pkgver}
+  sed 's|\[s:rootNERDTreePath,|["/usr/share/doc/vim-nerdtree",|' -i autoload/nerdtree.vim
+}
+
 package() {
   cd nerdtree-${pkgver}
   local _installpath="${pkgdir}/usr/share/vim/vimfiles"
   install -d "${_installpath}"
   cp -r -t "${_installpath}" autoload doc plugin syntax nerdtree_plugin lib
+  install -Dm 644 CHANGELOG.md -t "${pkgdir}/usr/share/doc/${pkgname}"
   install -Dm 644 LICENCE -t "${pkgdir}/usr/share/licenses/${pkgname}"
   install -Dm 644 README.markdown CHANGELOG.md -t "${pkgdir}/usr/share/doc/${pkgname}"
 }


More information about the arch-commits mailing list