1 # Maintainer: Laurent Carlier <lordheavym@gmail.com>
2 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 # Maintainer: Jan de Groot <jgc@archlinux.org>
4 # Contributor: Andreas Radke <andyrtr@archlinux.org>
7 pkgdesc="classic OpenGL (non-Gallium3D) drivers"
11 makedepends=('python-mako' 'libxml2' 'libx11' 'xorgproto' 'libdrm' 'libxshmfence' 'libxxf86vm'
12 'libxdamage' 'wayland' 'wayland-protocols' 'zstd' 'elfutils'
13 'libglvnd' 'libunwind' 'libxrandr' 'valgrind' 'cmake' 'meson')
14 url="https://www.mesa3d.org/"
16 source=(https://mesa.freedesktop.org/archive/mesa-${pkgver}.tar.xz{,.sig}
18 sha512sums=('4cec6f4f50f444fcd327f7c40f8899c2f265e348e121455262b540b1f890a1468bbea59965af0876c548fa97aa0a05a1b23fa6ca7d308bd60328cfdeab757684'
20 'f9f0d0ccf166fe6cb684478b6f1e1ab1f2850431c06aa041738563eb1808a004e52cdec823c103c9e180f03ffc083e95974d291353f0220fe52ae6d4897fecc7')
21 #validpgpkeys=('57551DE15B968F6341C248F68D8E31AFC32428A6') # Eric Engestrom <eric@engestrom.ch>
22 validpgpkeys=('71C4B75620BC75708B4BDB254C95FAAB3EB073EC') # Dylan Baker <dylan@pnwbakers.com>
29 arch-meson mesa-$pkgver build \
34 -D dri-drivers=i915,i965,r100,r200,nouveau \
35 -D gallium-drivers=swrast \
36 -D vulkan-drivers=auto \
44 -D libunwind=enabled \
46 -D lmsensors=disabled \
48 -D shared-glapi=enabled \
49 -D microsoft-clc=disabled \
56 meson compile -C build
60 depends=('libglvnd' 'libdrm' 'zstd' 'wayland' 'libxshmfence' 'libxxf86vm' 'libxfixes')
62 provides=("mesa=${pkgver}" "opengl-driver")
64 DESTDIR="${pkgdir}" meson install -C build
67 ln -s /usr/lib/libGLX_amber.so.0 "${pkgdir}/usr/lib/libGLX_indirect.so.0"
69 install -m644 -Dt "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE