summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: efbf5b7571faa4f5ca86eca681fd907470650979 (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
# Maintainer: Adam Goldsmith <contact@adamgoldsmith.name>

pkgname=cura-git
pkgver=4.8.beta.r99.g5ab4062ce
pkgrel=1
pkgdesc="A full software solution for 3D printing aimed at RepRaps and the Ultimaker."
arch=('any')
license=('GPL3')
url="https://github.com/Ultimaker/Cura"
provides=('cura')
conflicts=('cura')
depends=('python'
         'python-pyqt5'
         'python-numpy'
         'python-protobuf'
         'python-pynest2d-git'
         'python-requests'
         'python-certifi'
         'python-sentry_sdk'
         'qt5-graphicaleffects'
         'qt5-quickcontrols'
         'qt5-quickcontrols2'
         'qt5-svg'
         'libarcus-git'
         'libsavitar'
         'uranium-git'
         'curaengine-git')
makedepends=('git' 'cmake')
optdepends=('python-zeroconf: Detecting mDNS printers'
            'cura-binary-data-git: Firmwares and translations'
            'python-pyserial: USB printing'
            'cura-fdm-materials-git: Default Materials'
            'python-trimesh: Reading AMF files'
            'python-libcharon: UFPWriter/UFPReader')
source=('git+https://github.com/Ultimaker/Cura.git')
md5sums=('SKIP')

pkgver() {
  cd Cura
  git describe --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  mkdir -p Cura/build
  cd Cura/build
  cmake -DCMAKE_INSTALL_PREFIX=/usr -DURANIUM_SCRIPTS_DIR=/usr/share/uranium/scripts ..
  make
}

package() {
  cd "$srcdir/Cura/build"
  make DESTDIR="$pkgdir/" install
}

# vim:set ts=2 sw=2 et: