blob: 3588b95c0daf5bcca006ee7d0964622b48c8b8ba (
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
|
# Maintainer: Sean Anderson <seanga2@gmail.com>
pkgname=python-dt-schema
_name=${pkgname#python-}
pkgver=2024.11
pkgrel=1
pkgdesc="Tooling for devicetree validation using YAML and jsonschema"
arch=('any')
url="https://github.com/devicetree-org/dt-schema"
license=('BSD')
groups=()
depends=(
dtc
python
python-ruamel-yaml
python-rfc3987
python-jsonschema
)
makedepends=(
python-build
python-installer
python-setuptools-scm
python-wheel
)
provides=()
conflicts=()
replaces=()
backup=()
options=(!emptydirs)
install=
source=("https://github.com/devicetree-org/$_name/archive/refs/tags/v$pkgver.tar.gz")
sha512sums=('3127d8dc7b3e84ccd2602d81b17e5541108f062f807ecbd40cea1e681a2b73a663c03e8bc61e1003313e5ec9cd8d4869cc55048e846044278029e27dafbaf760')
prepare() {
cd "$_name-$pkgver"
sed -i "/write_to.*/a fallback_version = '${pkgver}'" pyproject.toml
}
build() {
cd "$_name-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "$_name-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
}
|