[arch-commits] Commit in mercurial/repos (3 files)

Andreas Radke andyrtr at archlinux.org
Thu Jun 4 13:38:15 UTC 2020


    Date: Thursday, June 4, 2020 @ 13:38:14
  Author: andyrtr
Revision: 388278

archrelease: copy trunk to testing-x86_64

Added:
  mercurial/repos/testing-x86_64/
  mercurial/repos/testing-x86_64/PKGBUILD
    (from rev 388277, mercurial/trunk/PKGBUILD)
  mercurial/repos/testing-x86_64/mercurial.profile
    (from rev 388277, mercurial/trunk/mercurial.profile)

-------------------+
 PKGBUILD          |   73 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 mercurial.profile |    1 
 2 files changed, 74 insertions(+)

Copied: mercurial/repos/testing-x86_64/PKGBUILD (from rev 388277, mercurial/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2020-06-04 13:38:14 UTC (rev 388278)
@@ -0,0 +1,73 @@
+# Maintainer:  Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Contributor: Giovanni Scafora <giovanni at archlinux.org>
+# Contributor: Douglas Soares de Andrade <douglas at archlinux.org>
+
+pkgname=mercurial
+pkgver=5.4
+pkgrel=2
+pkgdesc='A scalable distributed SCM tool'
+arch=(x86_64)
+url="https://www.mercurial-scm.org/"
+license=(GPL)
+depends=(python)
+makedepends=('python-docutils')
+optdepends=('tk: for the hgk GUI')
+#checkdepends=('breezy' 'cvs' 'git' 'git-lfs' 'python-docutils' 'subversion' 'unzip')
+
+# ToDo:
+# check included contrib/packaging/mercurial.spec and how BLFS/Gentoo/Debian/Fedora do it
+# the following should be either makedepends or checkdepends when running tests
+# 'python-gnupg' 'python-pygments'  'python-pyflakes' 'python-pyopenssl'
+# 'openssh'  'rust' 'subversion' 'breezy' 'cvs' 'git') 	
+
+backup=(etc/mercurial/hgrc)
+validpgpkeys=(2BCCE14F5C6725AA2EA8AEB7B9C9DC824AA5BDD5
+              3A8155163D0E20A530FCB78647A67FFAA346AACE
+              EB851395B4223EE2F7BA0B28DA54740BF08732BA) # Pulkit Goyal <7895pulkit at gmail.com>
+source=(https://www.mercurial-scm.org/release/${pkgname}-${pkgver}.tar.gz{,.asc}
+        mercurial.profile)
+sha256sums=('1df8d1978aefcbb65dc51e3666a452583f47aeaf3c5682e4c00a3b23cd805d6a'
+            'SKIP'
+            '87427151713e689cd87dc50d50c048e0e58285815e4eb61962b50583532cbde5')
+
+build() {
+  cd $pkgname-$pkgver
+  make
+  make -C contrib/chg
+}
+
+check() {
+  cd $pkgname-$pkgver/tests
+  # TODO - disabled for now - to many tests fail
+  #python run-tests.py # -j48 || :
+}
+
+package() {
+  cd $pkgname-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  make DESTDIR="${pkgdir}" PREFIX=/usr install
+
+  install -m644 -D contrib/zsh_completion "$pkgdir/usr/share/zsh/site-functions/_hg"
+  install -m644 -D contrib/bash_completion "$pkgdir/usr/share/bash-completion/completions/hg"
+
+  make -C contrib/chg DESTDIR="$pkgdir" PREFIX=/usr install
+  install -m755 contrib/hg-ssh "$pkgdir/usr/bin"
+  install -m755 contrib/hgk "$pkgdir/usr/bin"
+
+  install -d "$pkgdir/usr/share/emacs/site-lisp"
+  install -m644 contrib/{mq.el,mercurial.el} "$pkgdir/usr/share/emacs/site-lisp"
+
+  install -Dm644 contrib/vim/HGAnnotate.vim \
+    "$pkgdir/usr/share/vim/vimfiles/syntax/HGAnnotate.vim"
+
+  # set some variables
+  install -m755 -d "$pkgdir/etc/profile.d"
+  install -m755 "$srcdir/mercurial.profile" "$pkgdir/etc/profile.d/mercurial.sh"
+
+  # FS#38825 - Add certs config to package
+  install -m755 -d "$pkgdir/etc/mercurial"
+  cat <<-EOF > "$pkgdir/etc/mercurial/hgrc"
+	[web]
+	cacerts = /etc/ssl/certs/ca-certificates.crt
+	EOF
+}

Copied: mercurial/repos/testing-x86_64/mercurial.profile (from rev 388277, mercurial/trunk/mercurial.profile)
===================================================================
--- testing-x86_64/mercurial.profile	                        (rev 0)
+++ testing-x86_64/mercurial.profile	2020-06-04 13:38:14 UTC (rev 388278)
@@ -0,0 +1 @@
+export HG=/usr/bin/hg



More information about the arch-commits mailing list