# Maintainer: PktSurf app=mesa version=23.1.9 build=1sml homepage="https://www.mesa3d.org/" download="https://archive.mesa3d.org/mesa-$version.tar.xz" desc="An open-source implementation of the OpenGL specification" requires="gcc-libs libelf expat libxml2 llvm libdrm libx11 libxrandr libxdamage libxshmfence libxxf86vm libvdpau" prepbuilddir() { mkandenterbuilddir rm -rf $app-$version tar xf $srcdir/$app-$version.tar.?z* cd $app-$version fixbuilddirpermissions applypatch $srcdir/llvm17.patch } build() { galliumdrivers="nouveau,radeonsi,swrast,r300,i915,iris,zink" mkdir -p smbuild && cd smbuild meson .. \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ -Dbuildtype=release \ -Dgallium-va=enabled \ -Dgallium-vdpau=enabled \ -Dgallium-drivers="$galliumdrivers" \ -Dvulkan-drivers=amd,intel,swrast \ -Dplatforms="x11,wayland" \ -Dgallium-nine=false \ -Degl=enabled \ -Dgles1=disabled \ -Dgles2=enabled \ -Dglx=dri \ -Dopengl=true \ -Dvalgrind=disabled \ -Dlibunwind=disabled ninja DESTDIR="$pkg" ninja install cp $srcdir/LICENSE $pkgdocs/ mkfinalpkg } sha512sums=" 886403cd9133e64c741a65497891aa868127f3d97583f908056c2b196690b562173a31f4573656fdd35ec89e22dd95ce02e0d683e5bf6261500420485ed268af mesa-23.1.9.tar.lz 2026e88c245da00c5170e7ce658c783427569787805e024fbea333d24da399e46ca0d4403e222e8138911c7f76216852c9214a800e3a84cac1993379abb5a621 llvm17.patch "