[arch-commits] Commit in python-wsaccel/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Tue Apr 9 09:52:45 UTC 2019
Date: Tuesday, April 9, 2019 @ 09:52:44
Author: felixonmars
Revision: 450563
upgpkg: python-wsaccel 0.6.2-4
remove python2 sibling
Modified:
python-wsaccel/trunk/PKGBUILD
----------+
PKGBUILD | 41 +++++++++++------------------------------
1 file changed, 11 insertions(+), 30 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-04-09 09:52:01 UTC (rev 450562)
+++ PKGBUILD 2019-04-09 09:52:44 UTC (rev 450563)
@@ -1,49 +1,30 @@
# Maintainer: Felix Yan <felixonmars at archlinux.org>
-pkgbase=python-wsaccel
-pkgname=('python-wsaccel' 'python2-wsaccel')
+pkgname=python-wsaccel
pkgver=0.6.2
_commit=f16d0b8cd9b54b5b2d7698a5b41d5c38e1564fb6
-pkgrel=3
+pkgrel=4
pkgdesc='Accelerator for ws4py and AutobahnPython'
arch=('x86_64')
url='https://github.com/methane/wsaccel'
license=('Apache')
-makedepends=('python-setuptools' 'python2-setuptools' 'cython' 'cython2' 'git')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner')
-source=("git+https://github.com/methane/wsaccel.git#commit=$_commit")
-md5sums=('SKIP')
+depends=('python')
+makedepends=('python-setuptools' 'cython')
+checkdepends=('python-pytest-runner')
+source=("$pkgname-$_commit.tar.gz::https://github.com/methane/wsaccel/archive/$_commit.tar.gz")
+md5sums=('f06b48bcdccc4713ad75234d87679eba')
-prepare() {
- cp -a wsaccel{,-py2}
-}
-
build() {
- cd "$srcdir"/wsaccel
+ cd wsaccel-$_commit
python setup.py build
-
- cd "$srcdir"/wsaccel-py2
- python2 setup.py build
}
check() {
- cd "$srcdir"/wsaccel
+ cd wsaccel-$_commit
python setup.py pytest
-
- cd "$srcdir"/wsaccel-py2
- python2 setup.py pytest
}
-package_python-wsaccel() {
- depends=('python')
-
- cd wsaccel
+package() {
+ cd wsaccel-$_commit
python setup.py install --root="$pkgdir" -O1
}
-
-package_python2-wsaccel() {
- depends=('python2')
-
- cd wsaccel-py2
- python2 setup.py install --root="$pkgdir" -O1
-}
More information about the arch-commits
mailing list