[arch-commits] Commit in cura/repos (2 files)

Jelle van der Waa jelle at archlinux.org
Thu Dec 12 20:05:08 UTC 2019


    Date: Thursday, December 12, 2019 @ 20:05:07
  Author: jelle
Revision: 537471

archrelease: copy trunk to community-testing-any

Added:
  cura/repos/community-testing-any/
  cura/repos/community-testing-any/PKGBUILD
    (from rev 537470, cura/trunk/PKGBUILD)

----------+
 PKGBUILD |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

Copied: cura/repos/community-testing-any/PKGBUILD (from rev 537470, cura/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2019-12-12 20:05:07 UTC (rev 537471)
@@ -0,0 +1,51 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+# Contributor: Grey Christoforo <my first name [at] my last name [dot] net>
+
+pkgname=cura
+pkgver=4.4.0
+pkgrel=1
+pkgdesc="A software solution for 3D printing aimed at RepRaps and the Ultimaker."
+depends=('python-pyqt5' 'qt5-svg' 'python-scipy' 'python-pyserial' 'python-numpy' 'uranium' 'python-requests'
+         'curaengine' 'cura-binary-data' 'cura-resources-materials' 'libsavitar' 'qt5-graphicaleffects'
+         'python-certifi')
+makedepends=('qt5-tools' 'cmake')
+optdepends=('python-zeroconf: network printing support')
+provides=('cura')
+url="https://ultimaker.com/en/products/cura-software"
+license=('LGPL')
+arch=('any')
+source=($pkgname-$pkgver.tar.gz::https://github.com/Ultimaker/Cura/archive/v${pkgver}.tar.gz)
+sha512sums=('7728553d15fc843c0f2aca83e1ce3df9806835eedd0be6d7447c3edd18cda7e4a23400192f70b1c385841463126dea5bbfc7316f8f12ed26b9392047cabc69d3')
+
+# Build order
+# arcus -> uranium -> curaengine -> libsavitar ->
+
+prepare(){
+  cd Cura-${pkgver}
+  sed -i 's,/dist-packages,.${PYTHON_VERSION_MINOR}/site-packages,g' CMakeLists.txt
+}
+
+build(){
+  cd Cura-${pkgver}
+  mkdir -p build
+  cd build
+  cmake .. \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DURANIUM_SCRIPTS_DIR=/usr/share/uranium/scripts \
+    -DCURA_VERSION=$pkgver \
+    -DCURA_SDK_VERSION=6.0.0 -DCURA_CLOUD_API_VERSION=1
+
+  make
+}
+
+package(){
+  cd Cura-${pkgver}/build
+  make DESTDIR="${pkgdir}" install
+  
+  # make sure cura can find uranium plugins:
+  ln -s /usr/lib/uranium/plugins/* "${pkgdir}/usr/lib/cura/plugins/."
+
+  # don't ever send any user or print info through the internet to Ultimaker
+  rm -rf "${pkgdir}/usr/lib/cura/plugins/SliceInfoPlugin"
+}



More information about the arch-commits mailing list