[arch-commits] Commit in (4 files)
Felix Yan
felixonmars at archlinux.org
Thu Feb 23 06:24:00 UTC 2017
Date: Thursday, February 23, 2017 @ 06:23:59
Author: felixonmars
Revision: 213587
addpkg: python-pydispatcher 2.0.5-2
Added:
python-pydispatcher/
python-pydispatcher/repos/
python-pydispatcher/trunk/
python-pydispatcher/trunk/PKGBUILD
----------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
Added: python-pydispatcher/trunk/PKGBUILD
===================================================================
--- python-pydispatcher/trunk/PKGBUILD (rev 0)
+++ python-pydispatcher/trunk/PKGBUILD 2017-02-23 06:23:59 UTC (rev 213587)
@@ -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
+}
Property changes on: python-pydispatcher/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list