[arch-commits] Commit in python-ioflo/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sun Dec 24 07:22:39 UTC 2017
Date: Sunday, December 24, 2017 @ 07:22:38
Author: felixonmars
Revision: 275684
upgpkg: python-ioflo 1.7.4-1
Modified:
python-ioflo/trunk/PKGBUILD
----------+
PKGBUILD | 43 ++++++++++---------------------------------
1 file changed, 10 insertions(+), 33 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-12-24 07:19:53 UTC (rev 275683)
+++ PKGBUILD 2017-12-24 07:22:38 UTC (rev 275684)
@@ -3,53 +3,30 @@
# 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.7.1
+pkgname=python-ioflo
+pkgver=1.7.4
pkgrel=1
pkgdesc='Flo based programming interface in python'
arch=('any')
url='http://ioflo.com'
license=('Apache')
-makedepends=('python-setuptools' 'python2-setuptools' 'python2-enum34')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/ioflo/ioflo/archive/v$pkgver.tar.gz")
-sha512sums=('75cba22f1101eddaf042b6c36faf72cefd4f3621e3d82fbdabaaeb3a8806622dec0787edf0d411f467a347219594e9a84d2ac2779f0c3eb0e5502a9a0e1a7dd8')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/ioflo/ioflo/archive/v$pkgver.tar.gz")
+sha512sums=('415b43b66c1be479e8ba4fc993f180418f95f1ae0d16ff8c496476da7a04f6caa0f918a064c60034cd926f4f49c1112946b911b57339a76ee5b0d2564ade224f')
-prepare() {
- cp -a ioflo-$pkgver{,-py2}
-
- sed -i '1i#coding: utf-8' ioflo-$pkgver-py2/ioflo/aid/vectoring.py
-}
-
build() {
- cd "$srcdir"/ioflo-$pkgver
+ cd ioflo-$pkgver
python setup.py build
-
- cd "$srcdir"/ioflo-$pkgver-py2
- python2 setup.py build
}
check() {
- cd "$srcdir"/ioflo-$pkgver
+ cd ioflo-$pkgver
python setup.py pytest
-
- cd "$srcdir"/ioflo-$pkgver-py2
- python2 setup.py pytest
}
-package_python-ioflo() {
- depends=('python')
-
+package() {
cd ioflo-$pkgver
python setup.py install --root="$pkgdir" -O1
}
-
-package_python2-ioflo() {
- depends=('python2-enum34')
-
- cd ioflo-$pkgver-py2
- python2 setup.py install --root="$pkgdir" -O1
-
- mv "$pkgdir"/usr/bin/ioflo{,2}
-}
More information about the arch-commits
mailing list