# Maintainer: Butui Hu pkgname=python-onnx pkgver=1.15.0 pkgrel=3 epoch=1 pkgdesc='Open Neural Network Exchange' arch=('x86_64') url='https://onnx.ai' license=('MIT') depends=( protobuf python-protobuf python-numpy python-six python-typing_extensions ) makedepends=( cmake git pybind11 python-build python-installer python-setuptools python-wheel ) source=("${pkgname}::git+https://github.com/onnx/onnx.git#tag=v${pkgver}") sha512sums=('SKIP') prepare() { cd "${pkgname}" git submodule update --init --recursive } build() { cd "${pkgname}" CMAKE_ARGS="-DCMAKE_CXX_STANDARD=17" \ python -m build --wheel --no-isolation } package() { cd "${pkgname}" python -m installer --destdir="${pkgdir}" dist/*.whl install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" } # vim:set ts=2 sw=2 et: