[arch-commits] Commit in python-hglib/repos (community-any community-any/PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Sun Jul 12 18:53:52 UTC 2015
Date: Sunday, July 12, 2015 @ 20:53:52
Author: jelle
Revision: 136737
archrelease: copy trunk to community-any
Added:
python-hglib/repos/community-any/
python-hglib/repos/community-any/PKGBUILD
(from rev 136736, python-hglib/trunk/PKGBUILD)
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: python-hglib/repos/community-any/PKGBUILD (from rev 136736, python-hglib/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2015-07-12 18:53:52 UTC (rev 136737)
@@ -0,0 +1,39 @@
+# Contributor: Erik Johnson <palehose at gmail dot com>
+
+pkgbase=python-hglib
+pkgname=('python2-hglib' 'python-hglib')
+pkgver=1.6
+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=('846fde01feb8891651a4d8dc2f3dd513')
+
+prepare() {
+ cp -rf "${pkgbase}-${pkgver}" "${pkgbase}-${pkgver}-2"
+}
+
+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}-2"
+ python2 setup.py install --root=${pkgdir}
+}
+
+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}"
+ python setup.py install --root=${pkgdir}
+}
+
+check() {
+ cd "${srcdir}/${pkgbase}-${pkgver}"
+ python test.py
+
+ cd "${srcdir}/${pkgbase}-${pkgver}-2"
+ python2 test.py
+}
More information about the arch-commits
mailing list