blob: 003e8908b1b38f614e402b023d32a21fb416c8c8 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Maintainer: Sving1024 <sving1024@outlook.com>
_name=accesser
pkgname=python-${_name}-git
pkgver=0.9.5.r0.g6b9a557
pkgrel=4
arch=('any')
pkgdesc="A tool for solving SNI RST"
url="https://github.com/URenko/Accesser"
license=('GPL-3.0-or-later')
conflicts=('python-accesser')
provides=('python-accesser')
depends=(
'python'
'python-packaging'
'python-cryptography'
'python-tld'
'python-tomli'
'python-dnspython'
)
makedepends=(
'python-build'
'python-installer'
'python-setuptools'
'python-wheel'
)
optdepends=(
'python-rich: DNS over https support'
'python-httpcore: DNS over https support'
'python-httpx: DNS over https support'
'python-h2: DNS over https support'
'python-aioquic: DNS over quic support'
)
source=(
"${_name}::git+https://github.com/URenko/Accesser.git"
"accesser.service"
)
sha256sums=(
'SKIP'
'cb16c9771c4fbaf70b6b8f898475d8d024dd57ab385cfecfe364cb678dcbbabe'
)
backup=(
'etc/accesser/pac'
'etc/accesser/config.toml'
'etc/accesser/rules.toml'
)
pkgver() {
cd ${srcdir}/${_name}
# cutting off 'foo-' prefix that presents in the git tag
git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd ${srcdir}/${_name}
python -m build --wheel --no-isolation
}
package() {
cd $_name
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 "accesser/pac" "${pkgdir}/etc/accesser/pac"
install -Dm644 "accesser/config.toml" "${pkgdir}/etc/accesser/config.toml"
cd ..
install -Dm644 "accesser.service" "${pkgdir}/usr/lib/systemd/system/accesser.service"
}
|