summaryrefslogtreecommitdiff
path: root/extra/mercurial/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/mercurial/PKGBUILD')
-rw-r--r--extra/mercurial/PKGBUILD11
1 files changed, 7 insertions, 4 deletions
diff --git a/extra/mercurial/PKGBUILD b/extra/mercurial/PKGBUILD
index dcf320118..224342902 100644
--- a/extra/mercurial/PKGBUILD
+++ b/extra/mercurial/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 148480 2012-02-02 09:45:02Z giovanni $
+# $Id: PKGBUILD 151621 2012-02-28 20:53:00Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Douglas Soares de Andrade <douglas@archlinux.org>
pkgname=mercurial
pkgver=2.1
-pkgrel=1
+pkgrel=2
pkgdesc="A scalable distributed SCM tool"
arch=('i686' 'x86_64')
url="http://mercurial.selenic.com/"
@@ -13,12 +13,15 @@ depends=('python2')
optdepends=('tk: for the hgk GUI')
backup=('etc/mercurial/hgrc')
source=("http://mercurial.selenic.com/release/${pkgname}-${pkgver}.tar.gz"
- 'mercurial.profile')
+ 'mercurial.profile'
+ 'mercurial-2.1-return-code.patch')
md5sums=('d2ca44f8d0129ab50639143af99d9363'
- '43e1d36564d4c7fbe9a091d3ea370a44')
+ '43e1d36564d4c7fbe9a091d3ea370a44'
+ '025e2ec8acc18a9b2a1b4f51f7bddbe3')
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
+ patch -Np1 -i "${srcdir}/mercurial-2.1-return-code.patch"
python2 setup.py install --root="${pkgdir}/" --optimize=1
sed -i -e 's#env python#env python2#' \