diff --git a/PKGBUILD b/PKGBUILD index 53d8ab3..ebfc6d7 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -33,11 +33,12 @@ prepare() { # Fix xgettext: case-sensitive mismatches sed -i 's|src/slic3r/GUI/AMSMappingPopup.cpp|src/slic3r/GUI/AmsMappingPopup.cpp|g' $pkgname/localization/i18n/list.txt sed -i 's|https://www.mpfr.org/mpfr-current/mpfr-4.2.1.tar.bz2|https://www.mpfr.org/mpfr-4.2.1/mpfr-4.2.1.tar.bz2|' $pkgname/deps/MPFR/MPFR.cmake + # OSMesa got removed in mesa 25.1, replace it with gl + sed -i 's/OSMesa/OpenGL::GL/' $pkgname/src/slic3r/CMakeLists.txt } build() { cd $pkgname - export CXXFLAGS="${CXXFLAGS} -flto" export CMAKE_POLICY_VERSION_MINIMUM=3.5 export CC=/usr/bin/gcc-14 export CXX=/usr/bin/g++-14