# Template file for 'PrusaSlicer' pkgname=PrusaSlicer version=2.4.2 revision=1 wrksrc="PrusaSlicer-version_${version}" build_style=cmake build_helper="qemu" configure_args="-DSLIC3R_WX_STABLE=1 -DSLIC3R_FHS=1 -DSLIC3R_GTK=3" hostmakedepends="pkg-config" makedepends=" boost-devel cereal cgal-devel dbus-devel eigen glew-devel glu-devel gmpxx-devel gtest-devel gtk+3-devel libcurl-devel libglib-devel libpng-devel nlopt-devel openvdb-devel tbb-devel wxWidgets-devel wxWidgets-gtk3-devel" short_desc="G-code generator for 3D printers (RepRap, Makerbot, Ultimaker etc.)" maintainer="Jasper Chan " license="GPL-3.0-or-later" homepage="https://www.prusa3d.com/prusaslicer/" distfiles="https://github.com/prusa3d/Prusaslicer/archive/version_${version}.tar.gz" checksum=ac3a77212260e8d0baf9df027c29e0ae965bc77f371e59fd27b8fe103ebb1f23 nocross="https://build.voidlinux.org/builders/armv7l_builder/builds/25230/steps/shell_3/logs/stdio" post_extract() { # 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}" }