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

Giovanni Scafora giovanni at archlinux.org
Thu Nov 19 22:55:54 EST 2009


    Date: Thursday, November 19, 2009 @ 22:55:54
  Author: giovanni
Revision: 59059

upgpkg: mercurial 1.4-2
    Fixed FS17210

Modified:
  mercurial/trunk/PKGBUILD

----------+
 PKGBUILD |   39 +++++++++++++++++++--------------------
 1 file changed, 19 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-11-20 02:22:47 UTC (rev 59058)
+++ PKGBUILD	2009-11-20 03:55:54 UTC (rev 59059)
@@ -1,33 +1,32 @@
 # $Id$
-# Contributor: Jeff Mickey <jeff at archlinux.org>
-# Contributor: Giovanni Scafora <linuxmania at gmail.com>
-# Contributor: David 'SleepyDog' <goodluv at gmail.com>
+# Maintainer: Giovanni Scafora <giovanni at archlinux.org>
 # Contributor: Douglas Soares de Andrade <douglas at archlinux.org>
 
 pkgname=mercurial
 pkgver=1.4
-pkgrel=1
+pkgrel=2
 pkgdesc="A scalable distributed SCM tool"
-url="http://www.selenic.com/mercurial"
 arch=('i686' 'x86_64')
+url="http://www.selenic.com/mercurial"
 license=('GPL')
-depends=('python>=2.6' 'tk')
-source=(http://www.selenic.com/mercurial/release/$pkgname-$pkgver.tar.gz)
+depends=('python>=2.6')
+optdepends=('tk: for the hgk GUI')
+source=(http://www.selenic.com/mercurial/release/${pkgname}-${pkgver}.tar.gz)
 md5sums=('951ebd4a8153eaa3c56fc0ce2575ab70')
 
 build() {
-    cd $srcdir/$pkgname-$pkgver
-    python setup.py install --root $pkgdir || return 1
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  python setup.py install --root="${pkgdir}/" || return 1
 
-    install -d $pkgdir/usr/share/man/{man1,man5}
-    install -m644 doc/hg.1 $pkgdir/usr/share/man/man1 || return 1
-    install -m644 doc/{hgrc.5,hgignore.5} $pkgdir/usr/share/man/man5 || return 1
-    install -m755 contrib/hgk $pkgdir/usr/bin || return 1
-    install -m644 -D contrib/zsh_completion $pkgdir/usr/share/zsh/site-functions/_hg || return 1
-    install -m644 -D contrib/bash_completion $pkgdir/etc/bash_completion.d/hg || return 1
-    install -d $pkgdir/usr/share/emacs/site-lisp
-    install -m644 contrib/{mq.el,mercurial.el} $pkgdir/usr/share/emacs/site-lisp || return 1
-     
-    vimpath="$pkgdir/usr/share/vim/vimfiles"
-    install -m644 -D contrib/vim/HGAnnotate.vim $vimpath/syntax/HGAnnotate.vim || return 1
+  install -d ${pkgdir}/usr/share/man/{man1,man5}
+  install -m644 doc/hg.1 "${pkgdir}/usr/share/man/man1" || return 1
+  install -m644 doc/{hgrc.5,hgignore.5} "${pkgdir}/usr/share/man/man5" || return 1
+  install -m755 contrib/hgk "${pkgdir}/usr/bin" || return 1
+  install -m644 -D contrib/zsh_completion "${pkgdir}/usr/share/zsh/site-functions/_hg" || return 1
+  install -m644 -D contrib/bash_completion "${pkgdir}/etc/bash_completion.d/hg" || return 1
+  install -d "${pkgdir}/usr/share/emacs/site-lisp"
+  install -m644 contrib/{mq.el,mercurial.el} "${pkgdir}/usr/share/emacs/site-lisp" || return 1
+
+  vimpath="${pkgdir}/usr/share/vim/vimfiles"
+  install -Dm644 contrib/vim/HGAnnotate.vim "${vimpath}/syntax/HGAnnotate.vim" || return 1
 }



More information about the arch-commits mailing list