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

Jelle van der Waa jelle at archlinux.org
Sun Mar 26 11:41:46 UTC 2017


    Date: Sunday, March 26, 2017 @ 11:41:46
  Author: jelle
Revision: 219072

archrelease: copy trunk to community-i686, community-x86_64

Added:
  cura/repos/community-i686/
  cura/repos/community-i686/PKGBUILD
    (from rev 219071, cura/trunk/PKGBUILD)
  cura/repos/community-x86_64/
  cura/repos/community-x86_64/PKGBUILD
    (from rev 219071, cura/trunk/PKGBUILD)

---------------------------+
 community-i686/PKGBUILD   |   44 ++++++++++++++++++++++++++++++++++++++++++++
 community-x86_64/PKGBUILD |   44 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 88 insertions(+)

Copied: cura/repos/community-i686/PKGBUILD (from rev 219071, cura/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2017-03-26 11:41:46 UTC (rev 219072)
@@ -0,0 +1,44 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+# Contributo: Grey Christoforo <my first name [at] my last name [dot] net>
+
+pkgname=cura
+pkgver=2.4.0
+pkgrel=3
+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')
+makedepends=('qt5-tools' 'cmake')
+provides=('cura')
+url="https://ultimaker.com/en/products/cura-software"
+license=('AGPL')
+arch=('i686' 'x86_64')
+source=(https://github.com/Ultimaker/Cura/archive/${pkgver}.tar.gz)
+sha1sums=('8f21748b27ef7e6fd7b07c2c6f81695f073a6840')
+
+prepare(){
+  cd Cura-${pkgver}
+  sed -i 's,DESTINATION lib/python${PYTHON_VERSION_MAJOR}/dist-packages,DESTINATION lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages,g' CMakeLists.txt
+  sed -i 's,DESTINATION lib/python${PYTHON_VERSION_MAJOR}/dist-packages/cura),DESTINATION lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages/cura),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
+
+  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"
+}

Copied: cura/repos/community-x86_64/PKGBUILD (from rev 219071, cura/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2017-03-26 11:41:46 UTC (rev 219072)
@@ -0,0 +1,44 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+# Contributo: Grey Christoforo <my first name [at] my last name [dot] net>
+
+pkgname=cura
+pkgver=2.4.0
+pkgrel=3
+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')
+makedepends=('qt5-tools' 'cmake')
+provides=('cura')
+url="https://ultimaker.com/en/products/cura-software"
+license=('AGPL')
+arch=('i686' 'x86_64')
+source=(https://github.com/Ultimaker/Cura/archive/${pkgver}.tar.gz)
+sha1sums=('8f21748b27ef7e6fd7b07c2c6f81695f073a6840')
+
+prepare(){
+  cd Cura-${pkgver}
+  sed -i 's,DESTINATION lib/python${PYTHON_VERSION_MAJOR}/dist-packages,DESTINATION lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages,g' CMakeLists.txt
+  sed -i 's,DESTINATION lib/python${PYTHON_VERSION_MAJOR}/dist-packages/cura),DESTINATION lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages/cura),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
+
+  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