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

Thomas Dziedzic td123 at archlinux.org
Wed Aug 20 01:58:07 UTC 2014


    Date: Wednesday, August 20, 2014 @ 03:58:07
  Author: td123
Revision: 220259

upgpkg: vim 7.4.410-1

bump and fix FS#41616 - [vim] Change to system vimrc location

Modified:
  vim/trunk/PKGBUILD

----------+
 PKGBUILD |   14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-08-20 01:41:26 UTC (rev 220258)
+++ PKGBUILD	2014-08-20 01:58:07 UTC (rev 220259)
@@ -6,11 +6,11 @@
 pkgbase=vim
 pkgname=('vim-minimal' 'vim' 'vim-python3' 'gvim' 'gvim-python3' 'vim-runtime')
 _topver=7.4
-_patchlevel=408
-__hgrev=4c08173b8b95
+_patchlevel=410
+__hgrev=7af530381fec
 _versiondir="vim${_topver//./}"
 pkgver=${_topver}.${_patchlevel}
-pkgrel=2
+pkgrel=1
 arch=('i686' 'x86_64')
 license=('custom:vim')
 url="http://www.vim.org"
@@ -20,7 +20,7 @@
         'vimrc'
         'archlinux.vim'
         'gvim.desktop')
-md5sums=('80ab31325318c52c14184a41cb70e99b'
+md5sums=('8e9722fbd9ddc3c05d21210939c23f23'
          'SKIP'
          'b9d4dcb9d3ee2e151dc4be1e94934f6a'
          'f3c8931847a12949bdd14c9d48fdabb3'
@@ -58,6 +58,12 @@
 }
 
 build() {
+  # define the place for the global (g)vimrc file (set to /etc/vimrc)
+  sed -i 's|^.*\(#define SYS_.*VIMRC_FILE.*"\) .*$|\1|' \
+    ${pkgbase}-${pkgver}/src/feature.h
+  sed -i 's|^.*\(#define VIMRC_FILE.*"\) .*$|\1|' \
+    ${pkgbase}-${pkgver}/src/feature.h
+
   for pkg in ${pkgname[@]}
   do
     cp -a ${pkgbase}-${pkgver} ${pkg}-build




More information about the arch-commits mailing list