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

Felix Yan felixonmars at archlinux.org
Sun Sep 23 18:51:21 UTC 2018


    Date: Sunday, September 23, 2018 @ 18:51:21
  Author: felixonmars
Revision: 384233

upgpkg: python-wsproto 0.12.0-1

Modified:
  python-wsproto/trunk/PKGBUILD

----------+
 PKGBUILD |   26 +++++++-------------------
 1 file changed, 7 insertions(+), 19 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-09-23 18:51:05 UTC (rev 384232)
+++ PKGBUILD	2018-09-23 18:51:21 UTC (rev 384233)
@@ -4,8 +4,8 @@
 
 pkgbase=python-wsproto
 pkgname=(python-wsproto python2-wsproto)
-pkgver=0.11.0
-pkgrel=4
+pkgver=0.12.0
+pkgrel=1
 pkgdesc="WebSockets state-machine based protocol implementation"
 url="https://github.com/python-hyper/wsproto"
 license=('MIT')
@@ -12,30 +12,18 @@
 arch=('any')
 makedepends=('python-h11' 'python2-h11' 'python-setuptools' 'python2-setuptools' 'python2-enum34')
 checkdepends=('python-pytest-runner' 'python2-pytest-runner')
-source=("https://pypi.io/packages/source/w/wsproto/wsproto-$pkgver.tar.gz"
-        "pr54-h11-update.patch::$url/pull/54.patch")
+source=("https://pypi.io/packages/source/w/wsproto/wsproto-$pkgver.tar.gz")
+sha512sums=('159b7f67eff60c2514cfca17036d95017109fe251def6cec132998ac82a037484e3e248d4335539fd03491f56c491a7cf51582aa3f74a44d7d150220a875b18d')
 
-sha512sums=('583e030dc88971b3733e5e84e5fbaa70d6043d01485cabbbf45470baa31e4f511aea55e108132fc298aeae0031542af7bdd22b7ae25b11832179025a2fde4bdd'
-            'e123716dc239cb049419f6a668ba2b159c3c1c8db5c5f8147641f96f6ed74a730192929115b560df0be17197fc255dd7f4b31aec5734f7116742d3d4a0086747')
-
-prepare() {
-  patch -p1 -d wsproto-$pkgver < pr54-h11-update.patch
-  cp -a wsproto-$pkgver{,-py2}
-}
-
 build() {
-  cd "$srcdir"/wsproto-$pkgver
+  cd wsproto-$pkgver
   python setup.py build
-
-  cd "$srcdir"/wsproto-$pkgver-py2
   python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/wsproto-$pkgver
+  cd wsproto-$pkgver
   python setup.py pytest
-
-  cd "$srcdir"/wsproto-$pkgver-py2
   python2 setup.py pytest
 }
 
@@ -50,7 +38,7 @@
 package_python2-wsproto() {
   depends=('python2-h11' 'python2-enum34')
 
-  cd wsproto-$pkgver-py2
+  cd wsproto-$pkgver
   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