Browse Source

[trunk] -> [community] 'python-proxy.py-2.3.1-4' add

master
Qontinuum 5 months ago
parent
commit
fe7b8050b5
  1. 28
      trunk/PKGBUILD
  2. 28
      x86_64/community/PKGBUILD

28
trunk/PKGBUILD

@ -1,42 +1,42 @@
# Maintainer: Jonas Witschel <diabonas@archlinux.org>
pkgname=python-proxy.py
pkgver=2.3.1
_commit=82d562b7d6b068ea706634f97e6a086f5209df61 # git rev-parse "v$pkgver"
pkgrel=3
pkgrel=4
pkgdesc='Lightweight HTTP, HTTPS, HTTP2 and WebSockets proxy server'
arch=('any')
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'
}
# Fix building with python-setuptools >= 59
sed -zi 's/server\s*focused/server focused/' setup.py
}
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"
# Remove entry point usr/bin/proxy to avoid conflict with libproxy (FS#73325)
rm -r "$pkgdir/usr/bin"
}

28
x86_64/community/PKGBUILD

@ -1,42 +1,42 @@
# Maintainer: Jonas Witschel <diabonas@archlinux.org>
pkgname=python-proxy.py
pkgver=2.3.1
_commit=82d562b7d6b068ea706634f97e6a086f5209df61 # git rev-parse "v$pkgver"
pkgrel=3
pkgrel=4
pkgdesc='Lightweight HTTP, HTTPS, HTTP2 and WebSockets proxy server'
arch=('any')
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'
}
# Fix building with python-setuptools >= 59
sed -zi 's/server\s*focused/server focused/' setup.py
}
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"
# Remove entry point usr/bin/proxy to avoid conflict with libproxy (FS#73325)
rm -r "$pkgdir/usr/bin"
}

Loading…
Cancel
Save