blob: 26c51038d5674e1572f65efd57694504bc59ab97 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Maintainer: batot <archpackager @ algrim . pl>
# Contributor: Jelle van der Waa <jelle@archlinux.org>
# Contributor: Grey Christoforo <my first name [at] my last name [dot] net>
pkgname=cura
pkgver=5.3.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' 'libsavitar' 'qt5-graphicaleffects'
'python-certifi' 'python-pynest2d' 'python-keyring' 'python-trimesh'
'cura-resources-materials')
makedepends=('qt5-tools' 'cmake')
optdepends=('python-zeroconf: network printing support'
'python-trimesh: Reading AMF files'
'python-libcharon: UFPWriter/UFPReader'
'cura-binary-data: Binary data (firmwares and such) for cura')
provides=('cura')
url="https://ultimaker.com/software/ultimaker-cura"
license=('LGPL')
arch=('any')
source=($pkgname-$pkgver.tar.gz::https://github.com/Ultimaker/Cura/archive/${pkgver}.tar.gz
cura-${pkgver}-no-sentry.patch::https://github.com/Ultimaker/Cura/commit/aad41807c365ccef001b787407d7dc756e11de02.patch)
sha512sums=('79421486e89082a0b9f9435e778193f26d067c87fa52dbd277113da5614d5ce340d676aacdc1193bd2ab76de8c9456163bf983181d8d213e96b1af25b4a6b713'
'c602c5e585862d9bab280a8d5bd2289fe1b10d79f54cd76171b76fcf48793b190ff5bf6fca22818d8b65a726ee64098750c79cba67f044e0186a83aeb78e8a14')
# Build order
# arcus -> uranium -> curaengine -> libsavitar -> pynest2d ->
#prepare(){
# cd $srcdir/Cura-${pkgver}
# sed -i 's,/dist-packages,.${PYTHON_VERSION_MINOR}/site-packages,g' CMakeLists.txt
# patch -Np1 -i $srcdir/cura-${pkgver}-no-sentry.patch
#}
build(){
cd Cura-${pkgver}
mkdir -p build
cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DURANIUM_SCRIPTS_DIR=/usr/share/uranium/scripts \
-DCURA_VERSION=$pkgver \
-DCURA_SDK_VERSION=6.0.0 \
-DCURA_CLOUD_API_VERSION=1 \
-DCURA_CLOUD_API_ROOT:STRING="https://api.ultimaker.com" \
-DCURA_CLOUD_ACCOUNT_API_ROOT:STRING="https://account.ultimaker.com"
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"
}
|