[arch-commits] Commit in python-txaio/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sun May 21 06:48:45 UTC 2017


    Date: Sunday, May 21, 2017 @ 06:48:38
  Author: felixonmars
Revision: 228871

upgpkg: python-txaio 2.7.1-1

Modified:
  python-txaio/trunk/PKGBUILD

----------+
 PKGBUILD |   42 ++++++++++++++++++++++++------------------
 1 file changed, 24 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-05-21 06:48:11 UTC (rev 228870)
+++ PKGBUILD	2017-05-21 06:48:38 UTC (rev 228871)
@@ -1,17 +1,19 @@
 # $Id$
-# Maintainer: Anatol Pomozov
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Anatol Pomozov
 
 pkgbase=python-txaio
 pkgname=(python-txaio python2-txaio)
-pkgver=2.6.1
+pkgver=2.7.1
 pkgrel=1
-pkgdesc='Utilities to support code that runs unmodified on Twisted and asyncio'
-arch=(any)
+pkgdesc='Compatibility API between asyncio/Twisted/Trollius'
+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=('791d5ce2f4f0ab7188881c5eb7aedcb763b3afd1')
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-twisted' 'python2-twisted')
+source=("https://pypi.io/packages/source/t/txaio/txaio-$pkgver.tar.gz")
+sha512sums=('d77a8b5e8fc21be0bef43f2a6795229456a351abc1a5eb6d2b7de0da0a58e67a228cb06d1a7962efcc760099ef5df94e9421875ea5628985260911efc7deb85e')
 
 prepare() {
   cp -a txaio-$pkgver{,-py2}
@@ -18,33 +20,37 @@
 }
 
 build() {
-  cd "$srcdir/txaio-$pkgver"
+  cd "$srcdir"/txaio-$pkgver
   python setup.py build
 
-  cd "$srcdir/txaio-$pkgver-py2"
+  cd "$srcdir"/txaio-$pkgver-py2
   python2 setup.py build
 }
 
 check() {
-  cd "$srcdir/txaio-$pkgver"
+  cd "$srcdir"/txaio-$pkgver
   python setup.py test
 
-  cd "$srcdir/txaio-$pkgver-py2"
+  cd "$srcdir"/txaio-$pkgver-py2
   python2 setup.py test
 }
 
 package_python-txaio() {
-  depends=(python python-six python-twisted)
+  depends=('python-six')
 
-  cd "$srcdir/txaio-$pkgver"
+  cd txaio-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+  rm "$pkgdir"/usr/LICENSE
 }
 
 package_python2-txaio() {
-  depends=(python2 python2-six python2-twisted)
+  depends=('python2-six')
 
-  cd "$srcdir/txaio-$pkgver-py2"
+  cd txaio-$pkgver-py2
   python2 setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+  rm "$pkgdir"/usr/LICENSE
 }



More information about the arch-commits mailing list