blob: cd8810f22050db6d7f4aac003b3eef77530adafc (
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
66
67
68
69
70
71
72
73
74
75
|
# Maintainer: weilinfox <sakurakaze.fox at gmail.com>
pkgname=ruyi
pkgver=0.22.0
pkgrel=1
pkgdesc="RuyiSDK Package Manager"
arch=(any)
url="https://github.com/ruyisdk/ruyi"
license=(Apache-2.0)
depends=(
'python>=3.11'
'python-arpy'
'python-certifi'
'python-jinja'
'python-packaging'
'python-pygit2'
'python-requests'
'python-rich'
'python-semver'
'python-tomlkit'
'python-typing_extensions'
'python-yaml'
'sh'
)
makedepends=(
'python-build'
'python-installer'
'python-poetry-core'
)
checkdepends=('python-pytest')
optdepends=(
'android-tools: fastboot support'
'bash: ruyi use bash as default shell'
'bzip2: bzip file support'
'curl: curl downloading support'
'coreutils: dd support'
'gzip: gunzip file support'
'sudo: privileged operations support'
'tar: untar tarball support'
'unzip: zip file support'
'wget: wget downloading support'
'xz: xz file support'
'zstd: zstd file support'
)
source=(
"${pkgname}-${pkgver}.tar.gz::https://github.com/ruyisdk/ruyi/archive/refs/tags/${pkgver}.tar.gz"
"config.toml"
)
sha512sums=('a0fbc2ec70092d4d75cf431b834c6accc80bfa851ca6b5b81d45c24147823beb9c243a328e129c470fccc0a9454a9209b6475318098cefb3ea47fba6a3d7a391'
'03b9a18c495c37203e5c56518e1ab94118b3bf99e83c99924f3eeca7be64ac3b03d744c105ac99ab703c40e570195a7ed39785e5beef5f619bdf868bd6add6f6')
provides=(python-ruyi)
build() {
cd "$pkgname-$pkgver"
python -m build --wheel --skip-dependency-check --no-isolation
}
check() {
cd "$pkgname-$pkgver"
# pluginhost/test_api.py failed during collection
python -m pytest -v --ignore tests/pluginhost/test_api.py
}
package() {
cd "$pkgname-$pkgver"
python -m installer -d "$pkgdir" dist/*.whl
install -Dm644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}/"
install -Dm644 LICENSE*.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 ../config.toml -t "${pkgdir}/usr/share/${pkgname}/"
}
|