mesa-kraid-git

LOW
maintainer Grimish 0 votes scanned 2026-09-27 03:16:18.279095
View on AUR
Why flagged

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Triggered rules

Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

PKGBUILD

1# Maintainer: grimish@protonmail.com
2pkgname=mesa-kraid-git
3pkgver=26.3.0_devel.r230400.g61f259049cf
4pkgrel=2
5pkgdesc="Mesa (git main): Panfrost OpenGL + PanVK Vulkan with the KRAID shader compiler, for Arm Mali Valhall (RK3588 / Mali-G610)"
6arch=('aarch64')
7url="https://gitlab.freedesktop.org/mesa/mesa"
8license=('MIT AND BSD-3-Clause AND SGI-B-2.0')
9depends=('glibc' 'libgcc' 'libstdc++' 'libdrm' 'libglvnd' 'vulkan-icd-loader'
10 'expat' 'zstd' 'zlib' 'wayland' 'libx11' 'libxext' 'libxxf86vm'
11 'libxcb' 'xcb-util-keysyms' 'libxshmfence' 'libdisplay-info'
12 'systemd-libs' 'lm_sensors' 'llvm-libs' 'spirv-tools')
13optdepends=('python: mesa-overlay-control.py for the overlay layer')
14makedepends=('git' 'meson' 'ninja' 'python-mako' 'python-yaml' 'python-packaging' 'python-ply'
15 'bison' 'flex' 'glslang' 'wayland-protocols' 'llvm' 'clang' 'libclc'
16 'spirv-llvm-translator' 'rust' 'rust-bindgen' 'cbindgen')
17provides=("mesa=1:${pkgver%%_*}" "vulkan-panfrost=1:${pkgver%%_*}"
18 "vulkan-mesa-layers=1:${pkgver%%_*}" "vulkan-mesa-implicit-layers=1:${pkgver%%_*}"
19 "mesa-libgl=1:${pkgver%%_*}" 'opengl-driver' 'vulkan-driver')
20conflicts=('mesa' 'vulkan-panfrost' 'mesa-git' 'vulkan-mesa-layers' 'vulkan-mesa-implicit-layers')
21backup=('etc/profile.d/mesa-kraid.sh')
22options=('!lto')
23source=("mesa::git+https://gitlab.freedesktop.org/mesa/mesa.git#branch=main"
24 'mesa-kraid.sh'
25 '60-mesa-kraid.conf')
26sha256sums=('SKIP'
27 'bc1d1878130a64d1c8006fec6455418256c1cf259ec9cc09209868d3b4f4e97f'
28 'c009ee43740dacad9fd350f6595a5b6cc941e2f138e989d541c3b0831c4bdd52')
29
30pkgver() {
31 cd "$srcdir/mesa"
32 printf '%s.r%s.g%s' "$(tr - _ < VERSION)" \
33 "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
34}
35
36prepare() {
37 grep -q "'panfrost-rust'" "$srcdir/mesa/meson.options" || {
38 echo "this Mesa revision has no -Dpanfrost-rust option (KRAID not present)" >&2
39 return 1
40 }
41}
42
43build() {
44 local meson_opts=(
45 -Dprefix=/usr -Dlibexecdir=lib -Dsbindir=bin -Dlibdir=lib
46 -Dsysconfdir=/etc -Dlocalstatedir=/var
47 -Dbuildtype=release -Db_ndebug=true
48 -Dgallium-drivers=panfrost,zink -Dvulkan-drivers=panfrost
49 -Dvulkan-layers=device-select,overlay
50 -Dplatforms=wayland,x11 -Dglvnd=enabled -Dgbm=enabled -Degl=enabled
51 -Dgles1=disabled -Dgles2=enabled
52 -Dshader-cache=enabled -Dgallium-extra-hud=false
53 -Dllvm=enabled -Dmesa-clc=enabled -Dprecomp-compiler=enabled
54 -Dpanfrost-rust=true
55 -Dvalgrind=disabled -Dlibunwind=disabled
56 )
57 meson setup build mesa "${meson_opts[@]}"
58 meson compile -C build
59}
60
61package() {
62 DESTDIR="$pkgdir" meson install -C build --no-rebuild
63 install -Dm644 mesa-kraid.sh "$pkgdir/etc/profile.d/mesa-kraid.sh"
64 install -Dm644 60-mesa-kraid.conf "$pkgdir/usr/lib/environment.d/60-mesa-kraid.conf"
65 install -Dm644 mesa/docs/license.rst "$pkgdir/usr/share/licenses/$pkgname/license.rst"
66}
67

Scan history

Scanned at (UTC)SeverityRules
2026-09-27 03:16:18 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion