pkgname=python-lib3mf
pkgdesc="lib3mf is an implementation of the 3D Manufacturing Format file standard"
pkgver=2.4.1
pkgrel=1
arch=('any')
url="https://github.com/3MFConsortium/lib3mf_python"
license=('BSD-3-Clause')
makedepends=('python-setuptools' 'python-installer' 'python-wheel')
_name=${pkgname#python-}
_gitrev=69ad5c36e21fc8e289324ffdea4f6ae506188d2a
source=("https://github.com/3MFConsortium/lib3mf_python/archive/$_gitrev.tar.gz")
sha256sums=('172427c4b0574cdc6c59a5e045a0fb4e7bf76ae39f959805f44172f37bb5127e')

build() {
  cd lib3mf_python-$_gitrev
  python build_wheels.py
}

package() {
  cd lib3mf_python-$_gitrev
  python -m installer --destdir="$pkgdir" dist/*.whl
}
