[arch-commits] Commit in python-proxy.py/trunk (PKGBUILD)

Jonas Witschel diabonas at gemini.archlinux.org
Sun Nov 28 18:21:28 UTC 2021


    Date: Sunday, November 28, 2021 @ 18:21:28
  Author: diabonas
Revision: 1055295

python-proxy.py: add pkgver() function

Upstream has now pushed release tags.

Modified:
  python-proxy.py/trunk/PKGBUILD

----------+
 PKGBUILD |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-28 18:04:33 UTC (rev 1055294)
+++ PKGBUILD	2021-11-28 18:21:28 UTC (rev 1055295)
@@ -1,8 +1,7 @@
 # Maintainer: Jonas Witschel <diabonas at archlinux.org>
 pkgname=python-proxy.py
 pkgver=2.3.1
-# unfortunately there are no tags, and the tarball on PyPi is missing tests
-_commit=82d562b7d6b068ea706634f97e6a086f5209df61 
+_commit=82d562b7d6b068ea706634f97e6a086f5209df61 # git rev-parse "v$pkgver"
 pkgrel=1
 pkgdesc='Lightweight HTTP, HTTPS, HTTP2 and WebSockets proxy server'
 arch=('any')
@@ -21,6 +20,11 @@
 	sed -i 's/==.*//' requirements.txt
 }
 
+pkgver() {
+	cd "${pkgname#python-}"
+	git describe --tags | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g'
+}	
+
 build() {
 	cd "${pkgname#python-}"
 	python setup.py build



More information about the arch-commits mailing list