2020-06-10 21:48:10 +00:00
|
|
|
# Maintainer: Lukas1818 aur at lukas1818 dot de
|
2020-04-03 00:16:54 +00:00
|
|
|
|
2020-06-10 21:48:10 +00:00
|
|
|
pkgname=superslicer
|
2020-11-01 13:17:20 +00:00
|
|
|
pkgver=2.2.54.2
|
2020-05-10 17:38:47 +00:00
|
|
|
_pkgtag=$pkgver
|
2020-11-05 13:00:52 +00:00
|
|
|
pkgrel=2
|
2020-04-03 00:16:54 +00:00
|
|
|
pkgdesc="G-code generator for 3D printers (RepRap, Makerbot, Ultimaker etc.)"
|
|
|
|
arch=('x86_64')
|
2020-06-10 21:48:10 +00:00
|
|
|
url="https://github.com/supermerill/SuperSlicer"
|
2020-04-03 00:16:54 +00:00
|
|
|
license=('AGPL3')
|
2020-11-05 13:00:52 +00:00
|
|
|
depends=('cgal' 'glew' 'nlopt' 'openvdb' 'wxgtk3-dev-opt' 'boost-libs-171-opt' 'qhull>=2020.2-4')
|
2020-06-11 15:01:40 +00:00
|
|
|
replaces=('slic3r++')
|
2020-10-25 11:51:49 +00:00
|
|
|
makedepends=('cereal' 'cmake' 'eigen' 'libigl' 'openvdb' 'wxgtk2-dev-opt') # cmake doesn't detect wx if not both gtk2 and gtk3 are installed
|
2020-06-10 21:48:10 +00:00
|
|
|
source=("https://github.com/supermerill//SuperSlicer/archive/$_pkgtag.tar.gz"
|
|
|
|
"superslicer.desktop"
|
2020-10-11 18:13:41 +00:00
|
|
|
"start-superslicer.sh"
|
2020-11-05 13:00:52 +00:00
|
|
|
"0001-wxgtk3-is-broken-on-wayland.patch")
|
2020-11-01 13:17:20 +00:00
|
|
|
sha512sums=('3e28d28f463be49217d4aa19691bd190d644f86474786db69ec82d58090d2231a6c0add66eec59ac9f8c2169bfcd730a0c9deafd9df48182e92194bf6d2f39b6'
|
2020-10-25 12:42:43 +00:00
|
|
|
'8f75de56ba3e29b9c650d2946bd11afcf406a7fd42d2620ec44e4e76f6b64626de720190ce0f8be29ba7c48f714bfa0a71c45f868bdce7bc1ac7dbbc0e9e7583'
|
2020-10-25 11:51:49 +00:00
|
|
|
'3703901d97ae1982a36eb5c491fe0fd6953e81e6bb1d155404acfcac1de1f377931c88b9667688775af5ed16bd46944ca3a285bc4b2739762faa70e546044c43'
|
2020-11-05 13:00:52 +00:00
|
|
|
'acf35ebe467e9fb30f1b77d15348f1a7b82dcf45a5b829e375e972b5d6b49968603b3fa090c4d1f56e8b5148e2b820e79afa269da60ace70de1ceadcf6e820c5')
|
2020-04-03 00:16:54 +00:00
|
|
|
|
|
|
|
prepare()
|
|
|
|
{
|
2020-06-10 21:48:10 +00:00
|
|
|
cd "$srcdir/SuperSlicer-$_pkgtag"
|
|
|
|
|
2020-04-03 00:16:54 +00:00
|
|
|
# disabling tests is not enough, we need to remove them explicitly
|
|
|
|
sed -i 's,add_subdirectory(test),,g' src/CMakeLists.txt
|
2020-06-10 21:48:10 +00:00
|
|
|
|
2020-04-03 00:16:54 +00:00
|
|
|
# apply patches
|
2020-04-21 17:15:00 +00:00
|
|
|
patch --forward --strip=1 --input="$srcdir/0001-wxgtk3-is-broken-on-wayland.patch"
|
2020-04-03 00:16:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build()
|
|
|
|
{
|
2020-06-10 21:48:10 +00:00
|
|
|
cd "$srcdir/SuperSlicer-$_pkgtag"
|
2020-04-03 00:16:54 +00:00
|
|
|
mkdir -p build
|
|
|
|
cd build
|
2020-06-10 21:48:10 +00:00
|
|
|
|
2020-04-03 00:16:54 +00:00
|
|
|
cmake .. \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DOpenGL_GL_PREFERENCE=GLVND \
|
|
|
|
-DSLIC3R_FHS=ON \
|
|
|
|
-DSLIC3R_STATIC=OFF \
|
|
|
|
-DSLIC3R_WX_STABLE=ON \
|
|
|
|
-DSLIC3R_GTK=3 \
|
2020-10-11 18:13:41 +00:00
|
|
|
-DSLIC3R_BUILD_TESTS=OFF \
|
|
|
|
-DBoost_NO_BOOST_CMAKE=TRUE \
|
|
|
|
-DBoost_NO_SYSTEM_PATHS=TRUE \
|
|
|
|
-DBOOST_ROOT:PATHNAME=/opt/usr \
|
|
|
|
-DBoost_LIBRARY_DIRS:FILEPATH=/opt/usr/lib \
|
2020-10-25 11:51:49 +00:00
|
|
|
-DBoost_INCLUDE_DIR:FILEPATH=/opt/usr/include \
|
|
|
|
-DwxWidgets_CONFIG_EXECUTABLE=/opt/wxgtk-dev/bin/wx-config
|
2020-10-11 18:13:41 +00:00
|
|
|
|
2020-04-03 00:16:54 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package()
|
|
|
|
{
|
2020-06-10 21:48:10 +00:00
|
|
|
cd "$srcdir/SuperSlicer-$_pkgtag/build"
|
|
|
|
|
2020-04-03 00:16:54 +00:00
|
|
|
make DESTDIR="$pkgdir" install
|
2020-10-11 18:13:41 +00:00
|
|
|
test ! -h "$pkgdir/usr/share/SuperSlicer/resources" || rm "$pkgdir/usr/share/SuperSlicer/resources"
|
2020-06-10 21:48:10 +00:00
|
|
|
|
2020-04-03 00:16:54 +00:00
|
|
|
install -d "$pkgdir/usr/share/applications"
|
2020-06-10 21:48:10 +00:00
|
|
|
install -m 644 "$srcdir/superslicer.desktop" "$pkgdir/usr/share/applications/"
|
2020-10-11 18:13:41 +00:00
|
|
|
|
|
|
|
mv "$pkgdir/usr/bin/superslicer" "$pkgdir/usr/share/SuperSlicer"
|
|
|
|
install -Dm 755 "${srcdir}/start-superslicer.sh" "${pkgdir}/usr/bin/superslicer"
|
2020-04-03 00:16:54 +00:00
|
|
|
}
|