blob: 56025a1490617b206afba809b8cb750b8fe51894 (
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
|
# Maintainer: taotieren <admin@taotieren.com>
pkgname=python-odxtools
_name=${pkgname#python-}
pkgver=11.3.1
pkgrel=1
epoch=
pkgdesc="Utilities to work with the ODX standard for automotive diagnostics"
arch=('any')
url="https://github.com/mercedes-benz/odxtools"
license=(MIT)
groups=()
provides=(${pkgname})
conflicts=(${pkgname})
_pydeps=(
can
deprecation
jinja
markdownify
packaging
rich
typing_extensions
# AUR
bincopy
bitstruct
inquirerpy
)
depends=('python'
"${_pydeps[@]/#/python-}")
makedepends=(
git
python-build
python-installer
python-wheel
python-setuptools
python-setuptools-scm
)
options=('!strip')
source=("${_name}::git+${url}.git#tag=${pkgver}")
noextract=()
sha256sums=('f1ab98fa5465c84ab0b0b7db49c10dd18e1c505cee92fb64b0d803cbe7ddc08c')
build() {
cd "${srcdir}/${_name}"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${_name}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -vDm0644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
}
|