summaryrefslogtreecommitdiff
path: root/libs/mesa-nouveau/MAKEPKG
diff options
context:
space:
mode:
Diffstat (limited to 'libs/mesa-nouveau/MAKEPKG')
-rw-r--r--libs/mesa-nouveau/MAKEPKG58
1 files changed, 58 insertions, 0 deletions
diff --git a/libs/mesa-nouveau/MAKEPKG b/libs/mesa-nouveau/MAKEPKG
new file mode 100644
index 0000000..c3daae7
--- /dev/null
+++ b/libs/mesa-nouveau/MAKEPKG
@@ -0,0 +1,58 @@
+#!/bin/mkpkg
+# description: Mesa 3D Graphics Library with NVIDIA nouveau driver
+# url: https://www.mesa3d.org/
+
+name=mesa-nouveau
+version=26.2.3
+release=1
+variant=(Mesa with NVIDIA nouveau driver)
+provides=(mesa)
+depends=(libdrm libglvnd llvm libelf expat zlib zstd
+ wayland wayland-protocols libva libvdpau vulkan-loader
+ spirv-tools)
+makedeps=(meson python3 py-mako py-pyyaml py-packaging libclc glslang bison flex vulkan-headers)
+source=(https://archive.mesa3d.org/mesa-$version.tar.xz)
+
+sha256sums=(
+ "1628058a8d2c0615975de5a15ab7bbb9638c50000b5bed9456ff423ea034a81f"
+)
+
+build() {
+ printf '%s' "$version-$release" > mesa-$version/VERSION
+
+ meson setup mesa-$version build \
+ --prefix=/usr \
+ --libdir=lib \
+ --sysconfdir=/etc \
+ --buildtype=release \
+ -D platforms=wayland \
+ -D gallium-drivers=nouveau,llvmpipe,zink \
+ -D vulkan-drivers= \
+ -D vulkan-layers=device-select,overlay \
+ -D egl=enabled \
+ -D gbm=enabled \
+ -D gles1=disabled \
+ -D gles2=enabled \
+ -D glx=disabled \
+ -D llvm=enabled \
+ -D shared-llvm=enabled \
+ -D glvnd=enabled \
+ -D gallium-va=enabled \
+ -D video-codecs=all \
+ -D valgrind=disabled
+
+ meson compile -C build
+ DESTDIR=$PKG meson install -C build
+
+ # Remove files owned by wayland-protocols
+ rm -rf $PKG/usr/include/wayland-protocols
+ rm -rf $PKG/usr/share/wayland-protocols
+ rm -f $PKG/usr/share/pkgconfig/wayland-protocols.pc
+}
+
+signify() {
+ untrusted comment: public key
+ RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
+}
+
+# vim: filetype=sh