[arch-commits] Commit in prusa-slicer/repos (3 files)

Sven-Hendrik Haase svenstaro at archlinux.org
Mon Dec 28 03:15:39 UTC 2020


    Date: Monday, December 28, 2020 @ 03:15:39
  Author: svenstaro
Revision: 794327

archrelease: copy trunk to community-staging-x86_64

Added:
  prusa-slicer/repos/community-staging-x86_64/
  prusa-slicer/repos/community-staging-x86_64/PKGBUILD
    (from rev 794326, prusa-slicer/trunk/PKGBUILD)
  prusa-slicer/repos/community-staging-x86_64/prusa-slicer.desktop
    (from rev 794326, prusa-slicer/trunk/prusa-slicer.desktop)

----------------------+
 PKGBUILD             |   54 +++++++++++++++++++++++++++++++++++++++++++++++++
 prusa-slicer.desktop |   10 +++++++++
 2 files changed, 64 insertions(+)

Copied: prusa-slicer/repos/community-staging-x86_64/PKGBUILD (from rev 794326, prusa-slicer/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-12-28 03:15:39 UTC (rev 794327)
@@ -0,0 +1,54 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+pkgname=prusa-slicer
+pkgver=2.2.0
+pkgrel=11
+pkgdesc="G-code generator for 3D printers (Prusa fork of Slic3r)"
+arch=(x86_64)
+url="https://github.com/prusa3d/PrusaSlicer"
+license=(AGPL3)
+depends=(boost-libs curl glew intel-tbb nlopt wxgtk2 qhull openvdb cgal) #wxgtk3)
+makedepends=(cmake boost cereal eigen expat gtest libpng systemd)
+replaces=(slic3r-prusa3d)
+source=(${url}/archive/version_${pkgver}/${pkgname}-${pkgver}.tar.gz
+        ${pkgname}-boost-1.73.patch::${url}/commit/3a194f918716.patch
+        ${pkgname}.desktop)
+sha256sums=('e6e0c83bf92e448ec058fd3063b84caca69f58b8b419e48eace6e8ce534937c0'
+            '630b9db185ef3891387f3ade3eb29611eef7f7fc3fd8579b84864b936abf4b6f'
+            '9d21467c541b809f149b39c7c6b4f60b2c866823021fb6f8a076290583982d11')
+
+prepare() {
+  cd PrusaSlicer-version_${pkgver}
+  sed -i '1i\#include <atomic>' src/slic3r/GUI/Mouse3DController.hpp
+  patch -Np1 -i ../${pkgname}-boost-1.73.patch
+}
+
+build() {
+  cmake -B build -S PrusaSlicer-version_${pkgver} \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=lib \
+    -DSLIC3R_FHS=ON \
+    -DSLIC3R_PCH=OFF \
+    -DSLIC3R_WX_STABLE=ON #\
+    #-DSLIC3R_GTK=3 \
+    #-DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-gtk3
+  make -C build
+}
+
+check() {
+  cd build
+  ctest -v
+}
+
+package() {
+  make -C build DESTDIR="${pkgdir}" install
+
+  # Desktop file
+  install -Dm644 ${pkgname}.desktop -t "${pkgdir}"/usr/share/applications/
+
+  # Desktop icons
+  for i in 32 128 192 ; do
+    mkdir -p "${pkgdir}"/usr/share/icons/hicolor/${i}x${i}/apps/
+    ln -s /usr/share/PrusaSlicer/icons/PrusaSlicer_${i}px.png "${pkgdir}"/usr/share/icons/hicolor/${i}x${i}/apps/${pkgname}.png
+  done
+}

Copied: prusa-slicer/repos/community-staging-x86_64/prusa-slicer.desktop (from rev 794326, prusa-slicer/trunk/prusa-slicer.desktop)
===================================================================
--- community-staging-x86_64/prusa-slicer.desktop	                        (rev 0)
+++ community-staging-x86_64/prusa-slicer.desktop	2020-12-28 03:15:39 UTC (rev 794327)
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=PrusaSlicer
+Exec=/usr/bin/prusa-slicer
+Icon=prusa-slicer
+Terminal=false
+Type=Application
+StartupNotify=false
+MimeType=model/stl;application/vnd.ms-3mfdocument;application/prs.wavefront-obj;application/x-amf;
+Categories=Graphics;3DGraphics;
+Keywords=3D;Printing;Slicer;



More information about the arch-commits mailing list