46 lines
1.7 KiB
Bash
46 lines
1.7 KiB
Bash
# Template file for 'PrusaSlicer'
|
|
pkgname=PrusaSlicer
|
|
version=2.4.2
|
|
revision=2
|
|
build_style=cmake
|
|
build_helper="qemu cmake-wxWidgets-gtk3"
|
|
configure_args="-DSLIC3R_WX_STABLE=1 -DSLIC3R_FHS=1 -DSLIC3R_GTK=3
|
|
-DSLIC3R_ENC_CHECK=0 -DUSE_BLOSC=ON -DUSE_EXR=ON"
|
|
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 mpfr-devel
|
|
c-blosc-devel ilmbase-devel libopenexr-devel wxWidgets-gtk3-devel"
|
|
short_desc="G-code generator for 3D printers (RepRap, Makerbot, Ultimaker etc.)"
|
|
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=ac3a77212260e8d0baf9df027c29e0ae965bc77f371e59fd27b8fe103ebb1f23
|
|
|
|
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}"
|
|
}
|