[arch-commits] Commit in mercurial/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Thu Jan 30 20:04:22 UTC 2020
Date: Thursday, January 30, 2020 @ 20:04:21
Author: heftig
Revision: 374369
5.2.2-2: Return to py2
Modified:
mercurial/trunk/PKGBUILD
----------+
PKGBUILD | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-01-30 19:45:39 UTC (rev 374368)
+++ PKGBUILD 2020-01-30 20:04:21 UTC (rev 374369)
@@ -4,12 +4,12 @@
pkgname=mercurial
pkgver=5.2.2
-pkgrel=1
+pkgrel=2
pkgdesc='A scalable distributed SCM tool'
arch=(x86_64)
url="https://www.mercurial-scm.org/"
license=(GPL)
-depends=(python)
+depends=(python2)
optdepends=('tk: for the hgk GUI')
backup=(etc/mercurial/hgrc)
validpgpkeys=(2BCCE14F5C6725AA2EA8AEB7B9C9DC824AA5BDD5
@@ -20,6 +20,11 @@
'SKIP'
'87427151713e689cd87dc50d50c048e0e58285815e4eb61962b50583532cbde5')
+prepare() {
+ cd $pkgname-$pkgver
+ sed -i -e 's#env python#env python2#' mercurial/lsprof.py contrib/hg-ssh
+}
+
build() {
cd $pkgname-$pkgver/contrib/chg
make
@@ -27,7 +32,7 @@
package() {
cd $pkgname-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
+ python2 setup.py install --root="$pkgdir" --optimize=1
install -d "$pkgdir/usr/share/man/"{man1,man5}
install -m644 doc/hg.1 "$pkgdir/usr/share/man/man1"
More information about the arch-commits
mailing list