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