aports/testing/glmark2/APKBUILD
yzewei babfe21f6c testing/glmark2: fix build with python 3.12
https://build.alpinelinux.org/buildlogs/build-edge-loongarch64/testing/glmark2/glmark2-2023.01-r0.log

  File "/home/buildozer/aports/testing/glmark2/src/glmark2-2023.01/waflib/Context.py", line 5, in <module>
    import os,re,imp,sys
ModuleNotFoundError: No module named 'imp'

Signed-off-by: yzewei <yangzewei@loongson.cn>
2024-07-12 02:03:21 +00:00

33 lines
1 KiB
Text

# Contributor: Danct12 <danct12@disroot.org>
# Maintainer: Danct12 <danct12@disroot.org>
pkgname=glmark2
pkgver=2023.01
pkgrel=1
pkgdesc="OpenGL 2.0 and ES 2.0 benchmark"
url="https://github.com/glmark2/glmark2"
arch="all"
license="GPL-3.0-or-later"
subpackages="$pkgname-doc"
makedepends="python3 eudev-dev libjpeg-turbo-dev libpng-dev mesa-dev wayland-dev wayland-protocols"
source="$pkgname-$pkgver.tar.gz::https://github.com/glmark2/glmark2/archive/$pkgver.tar.gz
fix-build.patch
"
options="!check" # no testsuite
prepare() {
default_prepare
python3 ./waf configure --prefix=/usr --with-flavors drm-gl,drm-glesv2,wayland-gl,wayland-glesv2,x11-gl,x11-glesv2
}
build() {
python3 ./waf
}
package() {
python3 ./waf install --destdir="$pkgdir"
}
sha512sums="
5aaad56bb341e9c09d8dc78ac8d07d9af39f2414a158fd6e7c2717db2427d1b353408a874a8f38065e241474c674e8220d001652a5dd5a6c893ffe778cff9006 glmark2-2023.01.tar.gz
ec6dd84a19494ec324443f4a4b9c9e16ce178ff3fd5fd04dc35e89e4a79cb2528fd369cd9521c56b49929ca33ebbf56d91bdbe49ebf67162bcec5668986867d8 fix-build.patch
"