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

Felix Yan felixonmars at archlinux.org
Thu Apr 23 22:56:42 UTC 2020


    Date: Thursday, April 23, 2020 @ 22:56:42
  Author: felixonmars
Revision: 618394

upgpkg: python-http-parser 0.9.0-1

Modified:
  python-http-parser/trunk/PKGBUILD

----------+
 PKGBUILD |   34 +++++++++++++++++-----------------
 1 file changed, 17 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-23 22:56:29 UTC (rev 618393)
+++ PKGBUILD	2020-04-23 22:56:42 UTC (rev 618394)
@@ -2,36 +2,36 @@
 
 pkgbase=python-http-parser
 pkgname=('python-http-parser' 'python2-http-parser')
-pkgver=0.8.3
-pkgrel=5
+pkgver=0.9.0
+pkgrel=1
 pkgdesc="HTTP request/response parser for Python"
 arch=('x86_64')
 license=('MIT')
 url="https://github.com/benoitc/http-parser"
-makedepends=('python-setuptools' 'python2-setuptools' 'cython' 'git')
+makedepends=('python-setuptools' 'python2-setuptools' 'cython' 'cython2')
 checkdepends=('python-pytest' 'python2-pytest')
-source=("git+https://github.com/benoitc/http-parser.git#tag=$pkgver")
-sha512sums=('SKIP')
+source=("https://github.com/benoitc/http-parser/archive/$pkgver/$pkgbase-$pkgver.tar.gz")
+sha512sums=('75e51bef43d9d7698aad69f8bfe651e24784b97603cac55f33bf4c12c86792c8c71d6206f31847d052e4d8621a5ea65a7b34eca5bebdb8189f58e6d98d33139d')
 
 prepare() {
-  rm http-parser/http_parser/parser.c
-  cp -a http-parser{,-py2}
+  rm http-parser-$pkgver/http_parser/parser.c
+  cp -a http-parser-$pkgver{,-py2}
 }
 
 build() {
-  cd "$srcdir/http-parser"
+  cd "$srcdir"/http-parser-$pkgver
   python setup.py build
 
-  cd "$srcdir/http-parser-py2"
+  cd "$srcdir"/http-parser-$pkgver-py2
   python2 setup.py build
 }
 
 check() {
-  cd "$srcdir/http-parser"
+  cd "$srcdir"/http-parser-$pkgver
   PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.8:$PYTHONPATH" \
   py.test testing/
 
-  cd "$srcdir/http-parser-py2"
+  cd "$srcdir"/http-parser-$pkgver-py2
   PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" \
   py.test2 testing/
 }
@@ -39,15 +39,15 @@
 package_python-http-parser() {
   depends=('python')
 
-  cd http-parser
-  python setup.py install --root="${pkgdir}" --optimize=1
-  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  cd http-parser-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
 
 package_python2-http-parser() {
   depends=('python2')
 
-  cd http-parser-py2
-  python2 setup.py install --root="${pkgdir}" --optimize=1
-  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  cd http-parser-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }



More information about the arch-commits mailing list