maintainer="Thomas Aldrian " pkgname=py3-pyglm pkgver=2.7.3 pkgrel=0 pkgdesc="OpenGL Mathematics library for Python" url="https://github.com/Zuzu-Typ/PyGLM" arch="all" license="Zlib" depends="python3" makedepends=" py3-gpep517 py3-setuptools py3-wheel python3-dev " checkdepends="py3-pytest" # Keep in sync with project's submodules. _glm_gitrev=fcda03b54596adda543bcdccc6c1879e380c86a7 source=" $pkgname-$pkgver.tar.gz::https://github.com/Zuzu-Typ/PyGLM/archive/refs/tags/$pkgver.tar.gz https://github.com/Zuzu-Typ/glm/archive/$_glm_gitrev/glm-$_glm_gitrev.tar.gz " builddir="$srcdir/PyGLM-$pkgver/" prepare() { default_prepare rm -r glm ln -s "$srcdir/glm-$_glm_gitrev" glm } build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl .testenv/bin/python3 -m pytest } package() { python3 -m installer -d "$pkgdir" .dist/*.whl } sha512sums=" e48019abc27f8c6dfbad48d7fd94169f0cea24fb8ba3428ea7f418e7129eb900fc1c670b96637a3b7ff8a5fefbd3dbaa399738eb508523460d5b2a62e148a202 py3-pyglm-2.7.3.tar.gz ae9f6cb040700f98be6cbadc6f4bec1ac22e1fe704c7e36781aaa1db155e70fa9bd280e8ddd14bf941a02d0ed7587965a7607f3ad6699655a15131d440141f41 glm-fcda03b54596adda543bcdccc6c1879e380c86a7.tar.gz "