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-10-22 13:06:41 +00:00
|
|
|
pkgver=2.2.54.1
|
2020-05-10 17:38:47 +00:00
|
|
|
_pkgtag=$pkgver
|
2020-10-14 16:54:41 +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-10-25 11:51:49 +00:00
|
|
|
depends=('cgal' 'glew' 'nlopt' 'openvdb' 'wxgtk3-dev-opt' 'boost-libs-171-opt')
|
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-10-11 13:28:44 +00:00
|
|
|
"0001-wxgtk3-is-broken-on-wayland.patch"
|
|
|
|
"qhull-broken.patch")
|
2020-10-22 13:06:41 +00:00
|
|
|
sha512sums=('080403514cff589f8358e8d99fd1568c2db87f28aa8a76d6daa390e21f7c64dd958412c9212df60eee5da4647301f622673a6befa47fdef3609c56aa37fb14a7'
|
2020-10-14 16:54:41 +00:00
|
|
|
'a06f4ec1e78f43783c3cf7a2fe38ff8620e51d1c6f149acccccb58f1121a9d4d0e1823abfb711594ab42abcadd23c8cf92996a39906aa8f308c74c11c7a5a4a3'
|
2020-10-25 11:51:49 +00:00
|
|
|
'3703901d97ae1982a36eb5c491fe0fd6953e81e6bb1d155404acfcac1de1f377931c88b9667688775af5ed16bd46944ca3a285bc4b2739762faa70e546044c43'
|
2020-10-11 13:28:44 +00:00
|
|
|
'acf35ebe467e9fb30f1b77d15348f1a7b82dcf45a5b829e375e972b5d6b49968603b3fa090c4d1f56e8b5148e2b820e79afa269da60ace70de1ceadcf6e820c5'
|
|
|
|
'db1857418c2fe380a5e82c3c2b67d945ceb81f40df810c9b6b64730fdbcdf0e5b45e5f6ee8d77f40547b8f078b07aa92f2011e2aaa864a69c4b13d60c2a7b912')
|
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-10-11 13:28:44 +00:00
|
|
|
patch --forward --strip=0 --input="$srcdir/qhull-broken.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
|
|
|
}
|