* update glad to 2.0.4-1

This commit is contained in:
Alexander Baldeck 2023-11-02 11:42:29 +01:00
parent 4953760e13
commit a7d51193e1

View File

@ -2,23 +2,18 @@
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
pkgname=glad
pkgver=2.0.3
pkgrel=2
pkgver=2.0.4
pkgrel=1
pkgdesc='Multi-Language Vulkan/GL/GLES/EGL/GLX/WGL Loader-Generator based on the official specs'
url='https://github.com/Dav1dde/glad'
arch=(any)
license=('MIT')
depends=('python' 'python-jinja' 'python-lxml' 'python-setuptools')
makedepends=('python-build' 'python-installer' 'python-wheel')
checkdepends=('python-pytest')
checkdepends=('python-pytest' 'xorgproto' 'libx11' 'glfw-x11' 'xorg-server-xvfb' 'mingw-w64-gcc' 'wine' 'rust')
source=(${url}/archive/refs/tags/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
sha512sums=('bf2a97e51b18ad1849165b678f638a9fc2148d31b794d6f5840bc84052c82fd369f4c8e0f6c57898f0b68eea1cd6ec6293ee4d391748f952a3688a34bb5b047c')
b2sums=('1f453ee033348b79cf6e3e48df8e0411de4c0b96e7703b147a2c23a9822305c05478e8855859e375aef7385b4d1d6f21e3e11614a3281edaa1ba5ace91845e18')
prepare() {
cd ${pkgname}-${pkgver}
sed 's/import mock/from unittest import mock/' -i tests/test____main__.py
}
sha512sums=('328d0dbe33e69f846d1c54226c6675694404f41e53c4762e6013c7bfe76b0700f0b28f4117a2018a09c9c23ccb6ad94d7b20882fefc2513941a4515686c9b9e7')
b2sums=('788d2b70222fd09eea02515bdf3cbc147540631bf35fe39f12aa21fdbabf3d229f4234a430217dfaf3363934b8be12dd6a19871049a7b117deb8260ec69f8c67')
build() {
cd ${pkgname}-${pkgver}
@ -26,8 +21,11 @@ build() {
}
check() {
cd ${pkgname}-${pkgver}/tests
PYTHONPATH="${PWD}/../build/lib" pytest
cd ${pkgname}-${pkgver}
rm test/c/run/wgl -r # Remove Windows tests
PRINT_MESSAGE=1 \
EXIT_ON_FAILURE=1 \
xvfb-run ./utility/test.sh
}
package() {