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

Evangelos Foutras foutrelis at archlinux.org
Sun Dec 25 18:57:59 UTC 2016


    Date: Sunday, December 25, 2016 @ 18:57:58
  Author: foutrelis
Revision: 202310

archrelease: copy trunk to community-staging-any

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

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

Copied: python-ioflo/repos/community-staging-any/PKGBUILD (from rev 202309, python-ioflo/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-25 18:57:58 UTC (rev 202310)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: Thomas S Hatch <thatch45 at gmail.com>
+
+pkgbase=python-ioflo
+pkgname=('python-ioflo' 'python2-ioflo')
+pkgver=1.6.6
+pkgrel=2
+pkgdesc='Flo based programming interface in python'
+arch=('any')
+url='http://ioflo.com'
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools' 'python2-enum34' 'git')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("git+https://github.com/ioflo/ioflo.git#tag=v$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+  cp -a ioflo{,-py2}
+}
+
+build() {
+  cd "$srcdir"/ioflo
+  python setup.py build
+
+  cd "$srcdir"/ioflo-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/ioflo
+  python setup.py ptr || warning "Tests failed"
+
+  cd "$srcdir"/ioflo-py2
+  python2 setup.py ptr || warning "Tests failed"
+}
+
+package_python-ioflo() {
+  depends=('python')
+
+  cd ioflo
+  python setup.py install --root="$pkgdir" -O1
+}
+
+package_python2-ioflo() {
+  depends=('python2-enum34')
+
+  cd ioflo-py2
+  python2 setup.py install --root="$pkgdir" -O1
+
+  rm "$pkgdir"/usr/bin/ioflo
+}



More information about the arch-commits mailing list