# Maintainer: Simon Zeni <simon@bl4ckb0ne.ca>
pkgname=py3-glad
pkgver=2.0.7
pkgrel=0
pkgdesc="Multi-Language Vulkan/GL/GLES/EGL/GLX/WGL Loader-Generator based on the official specs"
url="https://github.com/Dav1dde/glad"
arch="noarch"
license="MIT AND Apache-2.0"
depends="py3-jinja2 python3"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
checkdepends="py3-mock py3-nose"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Dav1dde/glad/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/glad-$pkgver"
# only bigger integration tests
options="!check"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
6aae5e36acd319913f3c313da2a552d3033f7acbfd38fd07da99e737a23eaf250091134d82eceaf106aaa26bdd9f3a95b64dea635d5a82010e4d9a0ba69fc0e1  py3-glad-2.0.7.tar.gz
"
