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

Felix Yan fyan at archlinux.org
Sat Sep 19 13:00:21 UTC 2015


    Date: Saturday, September 19, 2015 @ 15:00:20
  Author: fyan
Revision: 140795

archrelease: copy trunk to community-staging-any

Added:
  python-process-tests/repos/community-staging-any/
  python-process-tests/repos/community-staging-any/PKGBUILD
    (from rev 140794, python-process-tests/trunk/PKGBUILD)

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

Copied: python-process-tests/repos/community-staging-any/PKGBUILD (from rev 140794, python-process-tests/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-19 13:00:20 UTC (rev 140795)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_pypiname=process-tests
+pkgbase=python-process-tests
+pkgname=('python-process-tests' 'python2-process-tests')
+pkgver=1.1.2
+pkgrel=2
+pkgdesc="Tools for testing processes"
+arch=('any')
+url="https://pypi.python.org/pypi/process-tests"
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://pypi.python.org/packages/source/p/process-tests/$_pypiname-$pkgver.tar.gz")
+md5sums=('6e8bc97aedce2fa8b174e314f8cb118b')
+
+prepare() {
+  cp -a process-tests-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir/process-tests-$pkgver"
+  python setup.py build
+
+  cd "$srcdir/process-tests-$pkgver-py2"
+  python2 setup.py build
+}
+
+package_python-process-tests() {
+  depends=('python')
+
+  cd "$srcdir/$_pypiname-$pkgver"
+  python setup.py install --root="$pkgdir/" --optimize=1
+  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-process-tests() {
+  depends=('python2')
+
+  cd "$srcdir/$_pypiname-$pkgver"
+  python2 setup.py install --root="$pkgdir/" --optimize=1
+  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list