|
1 | 1 | # Maintainer: David Runge <[email protected]>
|
2 | 2 |
|
3 |
| -_name=cmsis_pack_manager |
| 3 | +_name=cmsis-pack-manager |
4 | 4 | pkgname=python-cmsis-pack-manager
|
5 |
| -pkgver=0.5.1 |
6 |
| -pkgrel=2 |
| 5 | +pkgver=0.5.2 |
| 6 | +pkgrel=1 |
7 | 7 | pkgdesc="A Rust and Python module for handling CMSIS Pack files"
|
8 | 8 | arch=(x86_64)
|
9 | 9 | url="https://github.com/pyocd/cmsis-pack-manager"
|
10 | 10 | license=(Apache)
|
11 |
| -depends=(python-appdirs python-cffi python-pyyaml) |
12 |
| -makedepends=(maturin python-installer rust) |
13 |
| -checkdepends=(python-hypothesis python-jinja python-pytest) |
| 11 | +depends=( |
| 12 | + gcc-libs |
| 13 | + glibc |
| 14 | + python |
| 15 | + python-appdirs |
| 16 | + python-cffi |
| 17 | + python-pyyaml |
| 18 | +) |
| 19 | +makedepends=( |
| 20 | + python-build |
| 21 | + python-installer |
| 22 | + python-maturin |
| 23 | + python-wheel |
| 24 | + rust |
| 25 | +) |
| 26 | +checkdepends=( |
| 27 | + python-hypothesis |
| 28 | + python-jinja |
| 29 | + python-pytest |
| 30 | +) |
14 | 31 | # disable LTO until ring can be built with it: https://github.com/briansmith/ring/issues/1444
|
15 | 32 | options=(!lto)
|
16 |
| -source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz) |
17 |
| -sha512sums=('08c95b17c8fe21faf0940ea15b69de4fd5d15adfb6ef2c60cf6b086276bd89251eddbda8ad665fcba2e50b35c86fc3fe7224ef0b9efa6cace76eb3432f359f7b') |
18 |
| -b2sums=('e0c0aed4c64e394c56c88f3accbf7e568d39dc3587c598923e2258ad9b18c3bd540547c89bcb283429244863556837f344fc77bbf1383ef3437a134f1f941769') |
| 33 | +# NOTE: sdist tarball broken and upstream doesn't react at all: https://github.com/pyocd/cmsis-pack-manager/issues/207 |
| 34 | +# source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz) |
| 35 | +source=($url/archive/v$pkgver/$_name-v$pkgver.tar.gz) |
| 36 | +sha512sums=('3ce4824f9de3390d24fc031b5ba9304ab056ce488df3ba355c3fa2b5abe495269da2e4e4cf85ba3d5a577fce930b8da2deae8309e5fb6f9d997989b7f84d23c5') |
| 37 | +b2sums=('059b57ad539b815476212184f16508595ab67bd6a0cc0540795ce1f5b8341bc2f94d3519fe42b3281dca8f25bb0cb368e8483c6172d4dd365b72754a4e1dc7cf') |
19 | 38 |
|
20 | 39 | build() {
|
21 | 40 | cd $_name-$pkgver
|
22 |
| - maturin build --release --strip |
| 41 | + python -m build --wheel --no-isolation |
23 | 42 | }
|
24 | 43 |
|
25 | 44 | check() {
|
26 | 45 | local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
|
27 | 46 |
|
28 | 47 | cd $_name-$pkgver
|
29 |
| - python -m installer --destdir=test_dir target/wheels/*.whl |
30 |
| - export PYTHONPATH="test_dir/$_site_packages:$PYTHONPATH" |
| 48 | + python -m installer --destdir=test_dir dist/*.whl |
| 49 | + export PYTHONPATH="$PWD/test_dir/$_site_packages:$PYTHONPATH" |
31 | 50 | pytest -vv
|
32 | 51 | }
|
33 | 52 |
|
34 | 53 | package() {
|
35 | 54 | cd $_name-$pkgver
|
36 |
| - python -m installer --destdir="$pkgdir" target/wheels/*.whl |
| 55 | + python -m installer --destdir="$pkgdir" dist/*.whl |
37 | 56 | }
|
0 commit comments