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

Felix Yan felixonmars at archlinux.org
Thu Feb 23 06:24:33 UTC 2017


    Date: Thursday, February 23, 2017 @ 06:24:32
  Author: felixonmars
Revision: 213588

archrelease: copy trunk to community-any

Added:
  python-pydispatcher/repos/community-any/
  python-pydispatcher/repos/community-any/PKGBUILD
    (from rev 213587, python-pydispatcher/trunk/PKGBUILD)

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

Copied: python-pydispatcher/repos/community-any/PKGBUILD (from rev 213587, python-pydispatcher/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2017-02-23 06:24:32 UTC (rev 213588)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Thomas Sarboni <max-k at post.com>
+
+pkgbase=python-pydispatcher
+pkgname=('python-pydispatcher' 'python2-pydispatcher')
+pkgver=2.0.5
+pkgrel=2
+pkgdesc="Multi-producer-multi-consumer signal dispatching mechanism"
+url="http://sourceforge.net/projects/${pkgbase}/"
+arch=('any')
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("https://pypi.io/packages/source/P/PyDispatcher/PyDispatcher-$pkgver.tar.gz")
+md5sums=('1b9c2ca33580c2770577add7130b0b28')
+
+prepare() {
+  cp -a PyDispatcher-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/PyDispatcher-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/PyDispatcher-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/PyDispatcher-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/PyDispatcher-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_python-pydispatcher() {
+  depends=('python')
+
+  cd PyDispatcher-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 license.txt "$pkgdir"/usr/share/licenses/$pkgname/license.txt
+}
+
+package_python2-pydispatcher() {
+  depends=('python2')
+
+  cd PyDispatcher-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 license.txt "$pkgdir"/usr/share/licenses/$pkgname/license.txt
+}



More information about the arch-commits mailing list