blob: 6732693f24c97597a92f9bfcb1e9c0248bf1cdf8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Maintainer: Magi3r <magier dot mit dot f3erball at gmail dot com>
pkgname=python-primp
_name=primp
pkgver=0.10.1
pkgrel=2
pkgdesc='HTTP client that can impersonate web browsers, mimicking their headers and `TLS/JA3/JA4/HTTP2` fingerprints'
arch=('x86_64' 'aarch64')
url=https://github.com/deedy5/primp
license=('MIT')
depends=('python')
makedepends=('python-maturin' 'python-build' 'python-installer' 'python-wheel' 'clang')
source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('1fab598cb7d9c1e509747c0ac4352b75268849c6c67262cdb5a603d373ddb2bb')
build() {
cd $_name-$pkgver
python -m build --wheel --skip-dependency-check --no-isolation
}
check() {
cd $_name-$pkgver
}
package() {
cd $_name-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
# Symlink license file
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
install -d "$pkgdir"/usr/share/licenses/$pkgname
ln -s "$site_packages"/$_name-$pkgver.dist-info/LICENSE \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
|