[arch-commits] Commit in python-httptools/trunk (PKGBUILD)
Filipe LaĆns
ffy00 at archlinux.org
Tue Jun 22 18:35:17 UTC 2021
Date: Tuesday, June 22, 2021 @ 18:35:17
Author: ffy00
Revision: 966865
upgpkg: python-httptools 0.2.0-1
Modified:
python-httptools/trunk/PKGBUILD
----------+
PKGBUILD | 29 +++++++++++++++++++++--------
1 file changed, 21 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-06-22 18:28:17 UTC (rev 966864)
+++ PKGBUILD 2021-06-22 18:35:17 UTC (rev 966865)
@@ -2,31 +2,44 @@
_pkgname=httptools
pkgname=python-$_pkgname
-pkgver=0.1.1
-pkgrel=4
+pkgver=0.2.0
+pkgrel=1
pkgdesc='Fast HTTP parser'
arch=('x86_64')
url='https://github.com/MagicStack/httptools'
license=('MIT')
depends=('python' 'http-parser')
-makedepends=('python-setuptools')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
-sha512sums=('afee301be87ec01a1cf64ab4593a99e5c6c8366238f4a7660d2f40dd87c3c2ed2b82da4b047ef736546fe1450ac747322521cbd67f2a430ce31b4415be3a8251')
+makedepends=('git' 'python-setuptools' 'python-wheel' 'cython')
+#source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
+source=("git+$url#tag=v$pkgver"
+ 'git+https://github.com/nodejs/llhttp.git')
+sha512sums=('SKIP'
+ 'SKIP')
prepare() {
- cd $_pkgname-$pkgver
+ #cd $_pkgname-$pkgver
+ cd $_pkgname
+ sed -i 's|CYTHON_DEPENDENCY =.*|CYTHON_DEPENDENCY = "Cython"|' setup.py
sed -i 's|../../vendor/http-parser/http_parser.h|/usr/include/http_parser.h|' $_pkgname/parser/cparser.pxd
+
+ git rm vendor/http-parser
+
+ git submodule init
+ git config submodule.vendor/llhttp.url "$srcdir"/llhttp
+ git submodule update
}
build() {
- cd $_pkgname-$pkgver
+ #cd $_pkgname-$pkgver
+ cd $_pkgname
python setup.py build build_ext --use-system-http-parser
}
package() {
- cd $_pkgname-$pkgver
+ #cd $_pkgname-$pkgver
+ cd $_pkgname
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
More information about the arch-commits
mailing list