blob: 0dc30aa4d7c3646a27396b788483b54cba77c4b4 (
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
|
# 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"
}
|