blob: f7f205624d49b4c2cad1cce286aeb3c5d85c6092 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# SPDX-FileCopyrightText: Arch Linux contributors
# SPDX-License-Identifier: 0BSD
# shellcheck shell=bash disable=SC2034,SC2154,SC2164
# Maintainer: Frederik “Freso” S. Olesen <archlinux@freso.dk>
pkgname=python-onion-location-git
pkgver=0.1.0
pkgrel=1
pkgdesc='Python library for discovering Onion-Location HTTP headers'
arch=(any)
url="https://codeberg.org/Freso/${pkgname%-git}"
license=('AGPL-3.0-or-later')
depends=(
'python'
'python-beautifulsoup4'
'python-lxml'
)
makedepends=(
'python-hatchling'
'python-hatch-vcs'
# Generic/Arch Linux
'git'
'python-build'
'python-installer'
'python-wheel'
)
source=("git+${url}.git")
b2sums=('SKIP')
pkgver() {
cd "${pkgname%-git}"
hatch version
}
prepare () {
cd "${pkgname%-git}"
# Remove potential artifacts from earlier builds
git clean -dfx
}
build() {
cd "${pkgname%-git}"
python -m build --wheel --no-isolation
}
package() {
cd "${pkgname%-git}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 README.rst "${pkgdir}/usr/share/doc/${pkgname%-git}/README.rst"
}
|