1 # Maintainer: Laurent Carlier <lordheavym@gmail.com>
2 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 # Contributor: Jan de Groot <jgc@archlinux.org>
4 # Contributor: Andreas Radke <andyrtr@archlinux.org>
6 pkgname=lib32-mesa-amber
7 pkgdesc="classic OpenGL (non-Gallium3D) drivers (32-bit)"
11 makedepends=('python-mako' 'lib32-libxml2' 'lib32-libx11' 'xorgproto' 'lib32-libdrm'
12 'lib32-libxshmfence' 'lib32-libxxf86vm' 'lib32-libxdamage'
13 'lib32-wayland' 'wayland-protocols' 'lib32-zstd' 'lib32-libelf'
14 'lib32-libglvnd' 'lib32-libunwind' 'lib32-libxrandr' 'cmake' 'meson')
15 url="https://www.mesa3d.org/"
17 source=(https://mesa.freedesktop.org/archive/mesa-${pkgver}.tar.xz{,.sig}
19 sha512sums=('4cec6f4f50f444fcd327f7c40f8899c2f265e348e121455262b540b1f890a1468bbea59965af0876c548fa97aa0a05a1b23fa6ca7d308bd60328cfdeab757684'
21 'f9f0d0ccf166fe6cb684478b6f1e1ab1f2850431c06aa041738563eb1808a004e52cdec823c103c9e180f03ffc083e95974d291353f0220fe52ae6d4897fecc7')
22 #validpgpkeys=('57551DE15B968F6341C248F68D8E31AFC32428A6') # Eric Engestrom <eric@engestrom.ch>
23 validpgpkeys=('71C4B75620BC75708B4BDB254C95FAAB3EB073EC') # Dylan Baker <dylan@pnwbakers.com>
28 export PKG_CONFIG="i686-pc-linux-gnu-pkg-config"
29 cat >crossfile.ini <<END
31 llvm-config = '/usr/bin/llvm-config32'
34 # swr driver is broken with some cpu see FS#66972
36 arch-meson mesa-$pkgver build \
37 --native-file crossfile.ini \
43 -D dri-drivers=i915,i965,r100,r200,nouveau \
44 -D gallium-drivers=swrast \
45 -D vulkan-drivers=auto \
53 -D libunwind=enabled \
55 -D lmsensors=disabled \
57 -D shared-glapi=enabled \
58 -D microsoft-clc=disabled \
65 meson compile -C build
69 depends=('lib32-libglvnd' 'mesa-amber')
70 conflicts=('lib32-mesa')
71 provides=("lib32-mesa=${pkgver}" 'lib32-opengl-driver')
73 DESTDIR="${pkgdir}" meson install -C build
75 rm -rv "${pkgdir}"/usr/share/drirc.d
76 rm -rv "${pkgdir}"/usr/share/glvnd
77 rm -rv "${pkgdir}"/usr/include
80 ln -s /usr/lib32/libGLX_amber.so.0 "${pkgdir}/usr/lib32/libGLX_indirect.so.0"
82 install -m644 -Dt "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE