PKGBUILDs/extra/mesa-amber/PKGBUILD

73 lines
2.1 KiB
Bash
Raw Normal View History

2022-03-30 00:08:05 +00:00
# Maintainer: Laurent Carlier <lordheavym@gmail.com>
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Andreas Radke <andyrtr@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - removed intel DRI drivers
# - enable lto for aarch64
highmem=1
pkgname=mesa-amber
pkgdesc="classic OpenGL (non-Gallium3D) drivers"
pkgver=21.3.8
2022-04-02 14:11:55 +00:00
pkgrel=4
2022-03-30 00:08:05 +00:00
arch=('x86_64')
makedepends=('python-mako' 'libxml2' 'libx11' 'xorgproto' 'libdrm' 'libxshmfence' 'libxxf86vm'
'libxdamage' 'wayland' 'wayland-protocols' 'zstd' 'elfutils' 'llvm'
'libglvnd' 'libunwind' 'libxrandr' 'valgrind' 'cmake' 'meson')
url="https://www.mesa3d.org/"
license=('custom')
source=(https://mesa.freedesktop.org/archive/mesa-${pkgver}.tar.xz{,.sig}
LICENSE)
sha512sums=('0462c44fa8e358dafd03088411452bc172a365902795b3198df1e6cfbf1d87675ef5b72b572de7f15e5ee87b30ce5b2f217c81ea72b376962f6428c6ff83f2e9'
'SKIP'
'f9f0d0ccf166fe6cb684478b6f1e1ab1f2850431c06aa041738563eb1808a004e52cdec823c103c9e180f03ffc083e95974d291353f0220fe52ae6d4897fecc7')
validpgpkeys=('57551DE15B968F6341C248F68D8E31AFC32428A6') # Eric Engestrom <eric@engestrom.ch>
prepare() {
cd mesa-$pkgver
}
build() {
arch-meson mesa-$pkgver build \
-D b_lto=$([[ $CARCH == aarch64 ]] && echo true || echo false) \
-D b_ndebug=true \
-D amber=true \
-D platforms=auto \
-D dri-drivers=r100,r200,nouveau \
-D gallium-drivers=swrast \
-D vulkan-drivers=auto \
-D dri3=enabled \
-D egl=enabled \
-D gbm=enabled \
-D gles1=disabled \
-D gles2=enabled \
-D glvnd=auto \
-D glx=dri \
-D libunwind=enabled \
-D llvm=enabled \
-D lmsensors=disabled \
-D osmesa=true \
-D shared-glapi=enabled \
-D microsoft-clc=disabled \
-D valgrind=enabled
# Print config
meson configure build
ninja -C build
meson compile -C build
}
2022-04-02 14:11:55 +00:00
2022-03-30 00:08:05 +00:00
package() {
depends=('libglvnd')
conflicts=('mesa')
2022-04-02 14:11:55 +00:00
provides=("mesa=${pkgver}" "opengl-driver")
2022-03-30 00:08:05 +00:00
DESTDIR="${pkgdir}" meson install -C build
install -m644 -Dt "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE
}