fix: mesa package script cleanup

This commit is contained in:
ngn 2024-08-22 07:33:06 +03:00
parent 394685c445
commit c4896b08e7
2 changed files with 3227 additions and 18 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,37 +1,49 @@
NAME="mesa"
DESC="OpenGL compatible 3D graphics library"
VERSION="23.1.6"
FILES=(
"https://mesa.freedesktop.org/archive/mesa-$VERSION.tar.xz"
"https://www.linuxfromscratch.org/patches/blfs/12.0/mesa-add_xdemos-2.patch"
"https://mesa.freedesktop.org/archive/mesa-${VERSION}.tar.xz"
"mesa-add_xdemos-2.patch"
)
HASHES=(
"5dd176e3f283143cc193b5a8264a206e"
"52c375052d14dc879b70da4881f8ed32ecba1c8b58a4865386e05c1003aed343"
)
DEPENDS=("libdrm" "libxxf86vm" "libxshmfence" "zstd")
DEPENDS=(
"libdrm" "libxxf86vm" "libxshmfence"
"zstd" "zlib" "libx11" "libxcb"
"libxext"
)
BUILD=(
"python3" "pypi-mako" "llvm"
"libxml2" "cmake" "wayland"
)
PACKAGE() {
tar xf $NAME-$VERSION.tar.xz
cd $NAME-$VERSION
tar xf "${NAME}-${VERSION}.tar.xz"
cd "${NAME}-${VERSION}"
patch -Np1 -i ../mesa-add_xdemos-2.patch
mkdir build
cd build
meson setup \
--prefix=/usr \
--buildtype=release \
-Dplatforms=x11,wayland \
-Dgallium-drivers=auto \
-Dvulkan-drivers="" \
-Dvalgrind=disabled \
-Dlibunwind=disabled \
..
meson setup \
--prefix=/usr \
--buildtype=release \
-Dplatforms=x11,wayland \
-Dgallium-drivers=auto \
-Dvulkan-drivers="" \
-Dvalgrind=disabled \
-Dlibunwind=disabled \
..
ninja && DESTDIR=${ROOTDIR} ninja install
install -v -dm755 $ROOTDIR/usr/share/doc/mesa-$VERSION
cp -rfv ../docs/* $ROOTDIR/usr/share/doc/mesa-$VERSION
ninja
DESTDIR="${ROOTDIR}" ninja install
cd ../.. && rm -rf $NAME-$VERSION
install -v -dm755 "${ROOTDIR}/usr/share/doc/mesa-${VERSION}"
cp -rfv ../docs/* "${ROOTDIR}/usr/share/doc/mesa-${VERSION}"
cd ../.. && rm -rf "${NAME}-${VERSION}"
}