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

Felix Yan felixonmars at archlinux.org
Sun Dec 25 18:20:33 UTC 2016


    Date: Sunday, December 25, 2016 @ 18:20:33
  Author: felixonmars
Revision: 202242

archrelease: copy trunk to community-staging-any

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

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

Copied: python-txaio/repos/community-staging-any/PKGBUILD (from rev 202241, python-txaio/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-25 18:20:33 UTC (rev 202242)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Anatol Pomozov
+
+pkgbase=python-txaio
+pkgname=(python-txaio python2-txaio)
+pkgver=2.5.2
+pkgrel=2
+pkgdesc='Utilities to support code that runs unmodified on Twisted and asyncio'
+arch=(any)
+url='https://github.com/tavendo/txaio'
+license=(MIT)
+makedepends=(python-setuptools python2-setuptools python-twisted python2-twisted)
+source=(https://pypi.io/packages/source/t/txaio/txaio-$pkgver.tar.gz)
+sha1sums=('65813586147b24985e9e4138d689d6789e619df8')
+
+prepare() {
+  cp -a txaio-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir/txaio-$pkgver"
+  python setup.py build
+
+  cd "$srcdir/txaio-$pkgver-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/txaio-$pkgver"
+  python setup.py test
+
+  cd "$srcdir/txaio-$pkgver-py2"
+  python2 setup.py test
+}
+
+package_python-txaio() {
+  depends=(python python-six python-twisted)
+
+  cd "$srcdir/txaio-$pkgver"
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-txaio() {
+  depends=(python2 python2-six python2-twisted)
+
+  cd "$srcdir/txaio-$pkgver-py2"
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list