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

Daniel Griffiths dgriffiths at archlinux.org
Mon Feb 15 21:07:47 UTC 2010


    Date: Monday, February 15, 2010 @ 16:07:47
  Author: dgriffiths
Revision: 68978

FS#18248

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

----------------+
 PKGBUILD       |   29 +++++++++++++++++------------
 vimdoc.install |    2 +-
 2 files changed, 18 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-02-15 17:19:16 UTC (rev 68977)
+++ PKGBUILD	2010-02-15 21:07:47 UTC (rev 68978)
@@ -1,13 +1,14 @@
 # $Id$
-# Maintainer : Aaron Griffin <aaron at archlinux.org>
+# Contributor: Aaron Griffin <aaron at archlinux.org>
+# Maintainer: Daniel J Griffiths <ghost1227 at archlinux.us>
 
 pkgname=vim-a
 pkgver=2.18
 _scriptid=7218
 _docid=6347
-pkgrel=4
+pkgrel=5
 pkgdesc="alternate files in vim quickly (.c -> .h etc)"
-arch=(i686 x86_64)
+arch=('any')
 url="http://www.vim.org/scripts/script.php?script_id=31"
 license=('custom')
 depends=(vim)
@@ -18,15 +19,19 @@
 md5sums=('6570438244f71e19be1e1b84a5a6c1ec' '0fcef5054b1617fa8217c9bd0bede338'\
          '6f4ce554c0e43d79e1532c7ba0bf63fe')
 
-build()
-{
-  cd $srcdir
-  mv download_script.php?src_id=$_scriptid a.vim
-  mv download_script.php?src_id=$_docid alternate.txt
+build() {
+	cd ${srcdir}
 
-  installpath="$pkgdir/usr/share/vim/vimfiles"
+	mv download_script.php?src_id=$_scriptid a.vim
+	mv download_script.php?src_id=$_docid alternate.txt
+}
 
-  install -D -m644 a.vim $installpath/plugin/a.vim || return 1
-  install -D -m644 alternate.txt $installpath/doc/alternate.txt || return 1
-  install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+package() {
+	cd ${srcdir}
+
+	installpath="${pkgdir}/usr/share/vim/vimfiles"
+
+	install -D -m644 a.vim $installpath/plugin/a.vim || return 1
+	install -D -m644 alternate.txt $installpath/doc/alternate.txt || return 1
+	install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
 }

Modified: vimdoc.install
===================================================================
--- vimdoc.install	2010-02-15 17:19:16 UTC (rev 68977)
+++ vimdoc.install	2010-02-15 21:07:47 UTC (rev 68978)
@@ -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."
 }
 




More information about the arch-commits mailing list