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

Felix Yan felixonmars at archlinux.org
Sat Jun 30 18:30:09 UTC 2018


    Date: Saturday, June 30, 2018 @ 18:30:08
  Author: felixonmars
Revision: 349001

archrelease: copy trunk to community-staging-any

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

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

Copied: python-pydispatcher/repos/community-staging-any/PKGBUILD (from rev 348999, python-pydispatcher/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-06-30 18:30:08 UTC (rev 349001)
@@ -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=3
+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