[arch-commits] Commit in cura/repos (community-any community-any/PKGBUILD)

Jelle van der Waa jelle at archlinux.org
Sun Nov 18 11:43:19 UTC 2018


    Date: Sunday, November 18, 2018 @ 11:43:18
  Author: jelle
Revision: 408688

archrelease: copy trunk to community-any

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

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

Copied: cura/repos/community-any/PKGBUILD (from rev 408687, cura/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2018-11-18 11:43:18 UTC (rev 408688)
@@ -0,0 +1,49 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+# Contributor: Grey Christoforo <my first name [at] my last name [dot] net>
+
+pkgname=cura
+pkgver=3.6.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'
+         'curaengine' 'cura-binary-data' 'cura-resources-materials' 'libsavitar')
+makedepends=('qt5-tools' 'cmake')
+optdepends=('python-zeroconf: network printing support')
+provides=('cura')
+url="https://ultimaker.com/en/products/cura-software"
+license=('AGPL')
+arch=('any')
+source=($pkgname-$pkgver.tar.gz::https://github.com/Ultimaker/Cura/archive/${pkgver}.tar.gz)
+sha512sums=('b56e5575cb0eb15d759999dcd2f4c33873a0a57805a8ba0ec7860811a2137658a656216c969c6e3316d65fbd5e43f2def10a6385ccbf4fc306d15098569ef279')
+
+# 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
+
+  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