[arch-commits] Commit in vim-omnicppcomplete/trunk (PKGBUILD vimdoc.install)

Eric Bélanger eric at archlinux.org
Sun Dec 6 23:39:11 UTC 2009


    Date: Sunday, December 6, 2009 @ 18:39:10
  Author: eric
Revision: 60765

upgpkg: vim-omnicppcomplete 0.4.1-4
    Fixed help documentation (close FS#16300), Switched to 'any' arch

Modified:
  vim-omnicppcomplete/trunk/PKGBUILD
  vim-omnicppcomplete/trunk/vimdoc.install

----------------+
 PKGBUILD       |   19 ++++++++-----------
 vimdoc.install |    7 +------
 2 files changed, 9 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-12-06 23:28:08 UTC (rev 60764)
+++ PKGBUILD	2009-12-06 23:39:10 UTC (rev 60765)
@@ -5,28 +5,25 @@
 #I know the next version will be 0.5 just to break our crap
 pkgver=0.4.1
 _scriptid=7722
-pkgrel=3
+pkgrel=4
 pkgdesc="vim c++ completion omnifunc with a ctags database"
-arch=(i686 x86_64)
+arch=('any')
 url="http://www.vim.org/scripts/script.php?script_id=1520"
 license=('unknown')
 depends=('vim>=7.0' 'ctags')
 groups=('vim-plugins')
 install=vimdoc.install
-source=(http://www.vim.org/scripts/download_script.php?src_id=$_scriptid)
+source=(omnicppcomplete.zip::http://www.vim.org/scripts/download_script.php?src_id=${_scriptid})
 md5sums=('0978a565f95d8980a0035133144db639')
 
 build()
 {
-  cd $srcdir
-  mv download_script.php?src_id=$_scriptid omnicppcomplete.zip
-  unzip -qqo omnicppcomplete.zip
+  cd "${srcdir}"
+  installpath="${pkgdir}/usr/share/vim/vimfiles"
 
-  installpath="$pkgdir/usr/share/vim/vimfiles"
+  mkdir -p ${installpath}
+  cp -r doc after autoload ${installpath}
 
-  mkdir -p $installpath
-  cp -r doc after autoload $installpath
-
   #just in case... make sure it's all 644
-  find $installpath -type f -exec chmod 644 {} \;
+  find ${installpath} -type f -exec chmod 644 {} \;
 }

Modified: vimdoc.install
===================================================================
--- vimdoc.install	2009-12-06 23:28:08 UTC (rev 60764)
+++ vimdoc.install	2009-12-06 23:39:10 UTC (rev 60765)
@@ -1,7 +1,7 @@
 post_install() {
     echo -n "Updating vim help tags..."
     /usr/bin/vim --noplugins -u NONE -U NONE \
-        --cmd ":helptags /usr/share/vim/doc" --cmd ":q" > /dev/null 2>&1
+        --cmd ":helptags /usr/share/vim/vimfiles/doc" --cmd ":q" > /dev/null 2>&1
     echo "done."
 }
 
@@ -12,8 +12,3 @@
 post_remove() {
   post_install
 }
-
-op=$1
-shift
-
-$op $*




More information about the arch-commits mailing list