[arch-commits] Commit in python-hglib/repos (2 files)

Jaroslav Lichtblau jlichtblau at archlinux.org
Sat Sep 19 19:36:56 UTC 2015


    Date: Saturday, September 19, 2015 @ 21:36:56
  Author: jlichtblau
Revision: 141094

archrelease: copy trunk to community-staging-any

Added:
  python-hglib/repos/community-staging-any/
  python-hglib/repos/community-staging-any/PKGBUILD
    (from rev 141093, python-hglib/trunk/PKGBUILD)

----------+
 PKGBUILD |   40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

Copied: python-hglib/repos/community-staging-any/PKGBUILD (from rev 141093, python-hglib/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-19 19:36:56 UTC (rev 141094)
@@ -0,0 +1,40 @@
+# Contributor: Erik Johnson <palehose at gmail dot com>
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+
+pkgbase=python-hglib
+pkgname=('python2-hglib' 'python-hglib')
+pkgver=1.8
+pkgrel=1
+arch=('any')
+url="https://pypi.python.org/pypi/python-hglib"
+license=('MIT')
+makedepends=('python2' 'mercurial' 'python')
+checkdepends=('python-nose' 'python2-nose')
+source=("https://pypi.python.org/packages/source/p/python-hglib/${pkgbase}-${pkgver}.tar.gz")
+md5sums=('eee52cbb9ab5f9a3ea1b7075818c65a3')
+
+prepare() {
+  cp -rf "${pkgbase}-${pkgver}" "${pkgbase}-${pkgver}-2"
+}
+
+package_python2-hglib() {
+  pkgdesc="python2-hglib is a library with a fast, convenient interface to Mercurial. It uses Mercurial's command server for communication with hg."
+  depends=('python2' 'mercurial')
+  cd "${srcdir}/${pkgbase}-${pkgver}-2"
+  python2 setup.py install --root=${pkgdir} --optimize=1
+}
+
+package_python-hglib() {
+  pkgdesc="python-hglib is a library with a fast, convenient interface to Mercurial. It uses Mercurial's command server for communication with hg."
+  depends=('python' 'mercurial')
+  cd "${srcdir}/${pkgbase}-${pkgver}"
+  python setup.py install --root=${pkgdir} --optimize=1
+}
+
+check() {
+  cd "${srcdir}/${pkgbase}-${pkgver}"
+  python test.py
+
+  cd "${srcdir}/${pkgbase}-${pkgver}-2"
+  python2 test.py
+}



More information about the arch-commits mailing list