[arch-commits] Commit in python-proxy.py/trunk (PKGBUILD)
Jonas Witschel
diabonas at gemini.archlinux.org
Thu Dec 9 10:12:29 UTC 2021
Date: Thursday, December 9, 2021 @ 10:12:29
Author: diabonas
Revision: 1065837
python-proxy.py: use git-archive tarball instead of git
This makes bumping the version easier and provides access to stronger integrity
checksums.
Modified:
python-proxy.py/trunk/PKGBUILD
----------+
PKGBUILD | 20 +++++++-------------
1 file changed, 7 insertions(+), 13 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-09 10:02:31 UTC (rev 1065836)
+++ PKGBUILD 2021-12-09 10:12:29 UTC (rev 1065837)
@@ -1,7 +1,6 @@
# Maintainer: Jonas Witschel <diabonas at archlinux.org>
pkgname=python-proxy.py
pkgver=2.3.1
-_commit=82d562b7d6b068ea706634f97e6a086f5209df61 # git rev-parse "v$pkgver"
pkgrel=3
pkgdesc='Lightweight HTTP, HTTPS, HTTP2 and WebSockets proxy server'
arch=('any')
@@ -8,35 +7,30 @@
url='https://github.com/abhinavsingh/proxy.py'
license=('BSD')
depends=('python' 'python-typing_extensions')
-makedepends=('git' 'python-setuptools')
+makedepends=('python-setuptools')
checkdepends=('python-paramiko')
optdepends=('python-paramiko: proxy over SSH tunnel support')
-source=("git+$url#commit=$_commit")
-sha512sums=('SKIP')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
+sha512sums=('3b92271f3253b5c3eae9a01b864ea0ca4b4a40d131d73252aaa03b1b3e1887621085a4cd60420fcae2bae79a1b04edb5c143e4a0f19ff8a8de50acff772e04dc')
prepare() {
- cd "${pkgname#python-}"
+ cd "${pkgname#python-}-$pkgver"
# Remove strict version dependency for typing_extensions
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-}"
+ cd "${pkgname#python-}-$pkgver"
python setup.py build
}
check() {
- cd "${pkgname#python-}"
+ cd "${pkgname#python-}-$pkgver"
python setup.py test
}
package() {
- cd "${pkgname#python-}"
+ cd "${pkgname#python-}-$pkgver"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}
More information about the arch-commits
mailing list