mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-16 06:07:00 +02:00
PrusaSlicer: update to 2.4.2.
This commit is contained in:
parent
c7aed461c2
commit
8da33c252e
1 changed files with 22 additions and 12 deletions
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'PrusaSlicer'
|
||||
pkgname=PrusaSlicer
|
||||
version=2.4.0
|
||||
revision=2
|
||||
version=2.4.2
|
||||
revision=1
|
||||
wrksrc="PrusaSlicer-version_${version}"
|
||||
build_style=cmake
|
||||
build_helper="qemu"
|
||||
|
@ -16,21 +16,31 @@ maintainer="Jasper Chan <jasperchan515@gmail.com>"
|
|||
license="GPL-3.0-or-later"
|
||||
homepage="https://www.prusa3d.com/prusaslicer/"
|
||||
distfiles="https://github.com/prusa3d/Prusaslicer/archive/version_${version}.tar.gz"
|
||||
checksum=906d0acf0d0e064ae3cbaa16ba1a2e24dd9c32ceb2121464cb4d5951c09e66c2
|
||||
checksum=ac3a77212260e8d0baf9df027c29e0ae965bc77f371e59fd27b8fe103ebb1f23
|
||||
nocross="https://build.voidlinux.org/builders/armv7l_builder/builds/25230/steps/shell_3/logs/stdio"
|
||||
|
||||
post_extract() {
|
||||
# this test suite fails on musl
|
||||
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
||||
vsed -i tests/CMakeLists.txt -e "/add_subdirectory(libslic3r)/d"
|
||||
fi
|
||||
}
|
||||
|
||||
Slic3rPE_package() {
|
||||
build_style=meta
|
||||
depends="${sourcepkg}>=${version}_${revision}"
|
||||
# Mark tests that fail on certain targets
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
*-musl)
|
||||
vsed -i tests/libslic3r/test_mutable_priority_queue.cpp \
|
||||
-e 's/\(TEST_CASE("Mutable priority queue - first pop", "\[MutableSkipHeapPriorityQueue\]\)\(")\)/\1[!mayfail]\2/'
|
||||
;;
|
||||
i686*)
|
||||
vsed -i tests/libslic3r/test_voronoi.cpp \
|
||||
-e 's/\(TEST_CASE("Voronoi offset 2", "\[VoronoiOffset\]\)\(")\)/\1[!mayfail]\2/'
|
||||
vsed -i tests/fff_print/test_trianglemesh.cpp \
|
||||
-e 's/\(SCENARIO( "make_xxx functions produce meshes."\)\()\)/\1, "[!mayfail]"\2/'
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
post_install() {
|
||||
vinstall ${FILESDIR}/prusa-slicer.desktop 644 usr/share/applications
|
||||
}
|
||||
|
||||
Slic3rPE_package() {
|
||||
build_style=meta
|
||||
short_desc+=" (transitional dummy package)"
|
||||
depends="${sourcepkg}>=${version}_${revision}"
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue