Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions packages/mesa/arch/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ epoch=1
# Mesa's version, the commit's number on the fork's main branch (so that a
# newer commit is a newer package), and the commit.
pkgver=27.0.0.4
pkgrel=2
pkgdesc="Mesa from the OrchardLinux fork: OpenGL through Zink or in software, the asahi driver for the Apple A12 GPU, the Vulkan driver for the Apple PowerVR GPUs, and the desktop's GPU probe"
pkgrel=3
pkgdesc="Mesa from the OrchardLinux fork: OpenGL through Zink or in software, the asahi drivers (OpenGL and Vulkan) for the Apple A12 GPU, the Vulkan driver for the Apple PowerVR GPUs, and the desktop's GPU probe"
url="https://github.com/OrchardLinux/mesa"
license=('MIT')
arch=('aarch64')
Expand All @@ -58,9 +58,10 @@ build() {
# package leaves out.
local common=(--prefix=/usr --wrap-mode=nodownload -Db_lto=false -Dllvm=enabled -Dgles1=disabled
-Dvideo-codecs= -Dtools= -Dvulkan-layers= -Dbuild-tests=false)
# The Vulkan driver, with the options it has been tested with on the tablets.
# The Vulkan drivers, with the options they have been tested with on the
# devices: imagination (the PowerVR GPUs) and asahi (Honeykrisp, the A12's G11).
meson setup "mesa-${_commit}" build-vulkan "${common[@]}" --buildtype=debugoptimized \
-Dplatforms=x11,wayland -Dvulkan-drivers=imagination -Dgallium-drivers= \
-Dplatforms=x11,wayland -Dvulkan-drivers=imagination,asahi -Dgallium-drivers= \
-Dopengl=false -Degl=disabled -Dgbm=disabled -Dglx=disabled -Dgles2=disabled
ninja -C build-vulkan
# OpenGL. X11 and GLX are for applications under Xwayland, as in Arch's mesa.
Expand Down Expand Up @@ -99,6 +100,11 @@ package() {
build-vulkan/src/imagination/vulkan/powervr_mesa_icd.*.json > powervr_mesa_icd.json
grep -q '"library_path": "/usr/lib/libvulkan_powervr_mesa.so"' powervr_mesa_icd.json
install -Dm 644 powervr_mesa_icd.json "${pkgdir}/usr/share/vulkan/icd.d/powervr_mesa_icd.json"
install -Dm 755 build-vulkan/src/asahi/vulkan/libvulkan_asahi.so "${pkgdir}/usr/lib/libvulkan_asahi.so"
sed 's#"library_path": "[^"]*"#"library_path": "/usr/lib/libvulkan_asahi.so"#' \
build-vulkan/src/asahi/vulkan/asahi_icd.*.json > asahi_icd.json
grep -q '"library_path": "/usr/lib/libvulkan_asahi.so"' asahi_icd.json
install -Dm 644 asahi_icd.json "${pkgdir}/usr/share/vulkan/icd.d/asahi_icd.json"
install -Dm 755 gpu-probe "${pkgdir}/usr/lib/orchard/gpu-probe"
# Where omarchy-a's login session looks for it.
install -d "${pkgdir}/usr/lib/omarchy-a"
Expand Down
Loading