summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 573047f0a3044a0ea672683e5baa85d0c35d233b (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
# Maintainer: Adam Goldsmith <contact@adamgoldsmith.name>
 
pkgname=cura-git
pkgver=15.05.90.44.g98befd6
pkgrel=1
pkgdesc="A full software solution for 3D printing aimed at RepRaps and the Ultimaker."
arch=('i686' 'x86_64')
license=('GPL2')
url="https://github.com/daid/Cura"
provides=('cura')
conflicts=('cura')
depends=('python' 'python-pyqt5' 'python-opengl' 'python-pyserial' 'python-numpy' 'python-power-git' 'python-protobuf3' 'libarcus-git' 'qt5-quickcontrols')
makedepends=('git' 'cmake')
source=('git+https://github.com/Ultimaker/Cura.git'
        'git+https://github.com/Ultimaker/CuraEngine.git'
        'git+https://github.com/Ultimaker/Uranium.git')
md5sums=('SKIP' 'SKIP' 'SKIP')

_gitname="Cura"
_gitbranch="master"

pkgver() {
  cd "$_gitname"
  git describe --tags | sed 's/-/./g'
}

build() {
  mkdir -p CuraEngine/build
  cd CuraEngine/build
  cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ..
  make

  mkdir -p ../../Uranium/build
  cd ../../Uranium/build
  cmake -DCMAKE_INSTALL_PREFIX=/usr ..
  make

  mkdir -p ../../Cura/build
  cd ../../Cura/build
  cmake -DCMAKE_INSTALL_PREFIX=/usr ..
  make
}

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

  cd "$srcdir/CuraEngine/build"
  make DESTDIR="$pkgdir/" install

  chmod +x "$pkgdir/usr/bin/cura_app.py"

  mv "$pkgdir/usr/lib64/" "$pkgdir/usr/lib/"
}