[arch-commits] Commit in python-httptools/trunk (PKGBUILD)
Maxime Gauduin
alucryd at gemini.archlinux.org
Fri Aug 19 07:46:47 UTC 2022
Date: Friday, August 19, 2022 @ 07:46:47
Author: alucryd
Revision: 1269526
upgpkg: python-httptools 0.4.0-1
Modified:
python-httptools/trunk/PKGBUILD
----------+
PKGBUILD | 21 ++++++++++-----------
1 file changed, 10 insertions(+), 11 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-08-19 07:46:36 UTC (rev 1269525)
+++ PKGBUILD 2022-08-19 07:46:47 UTC (rev 1269526)
@@ -1,10 +1,10 @@
# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
-# Maintainer: Maxime Gauduin <alucryd@ærchlinux.org>
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
_pkgname=httptools
pkgname=python-$_pkgname
-pkgver=0.3.0
-pkgrel=3
+pkgver=0.4.0
+pkgrel=1
pkgdesc='Fast HTTP parser'
arch=('x86_64')
url='https://github.com/MagicStack/httptools'
@@ -11,14 +11,13 @@
license=('MIT')
depends=('python' 'http-parser')
makedepends=('git' 'python-setuptools' 'python-wheel' 'cython')
-#source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
-source=("git+$url#tag=v$pkgver"
+_tag=34034ec32b895cc630468e7f10804f8889221954
+source=("git+$url#tag=$_tag"
'git+https://github.com/nodejs/llhttp.git')
sha512sums=('SKIP'
'SKIP')
prepare() {
- #cd $_pkgname-$pkgver
cd $_pkgname
sed -i 's|CYTHON_DEPENDENCY =.*|CYTHON_DEPENDENCY = "Cython"|' setup.py
@@ -31,19 +30,19 @@
git submodule update
}
+pkgver() {
+ cd $_pkgname
+ git describe --tags | sed 's/^v//'
+}
+
build() {
- #cd $_pkgname-$pkgver
cd $_pkgname
-
python setup.py build build_ext --use-system-http-parser
}
package() {
- #cd $_pkgname-$pkgver
cd $_pkgname
-
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-
install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
More information about the arch-commits
mailing list