summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7fc9fe5d93da29806917b21547ea56e349a44a43 (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=bcn3dcura-git
pkgver=2.1.5
pkgrel=1
pkgdesc="3D printer / slicing GUI forked from Cura and built on top of the Uranium framework, customized for the BCN3D machines."
arch=('any')
license=('GPL3')
url="https://github.com/BCN3D/Cura"
provides=('cura' 'bcn3dcura')
conflicts=('cura' 'bcn3dcura')
depends=('python'
         'python-pyqt5'
         'python-numpy'
         'python-protobuf'
         'qt5-graphicaleffects'
         'qt5-quickcontrols'
         'qt5-quickcontrols2'
         'libarcus-git'
         'libsavitar'
         'bcn3duranium-git'
         'bcn3dcuraengine-git')
makedepends=('git' 'cmake')
optdepends=('python-zeroconf: Detecting mDNS printers'
            'cura-binary-data-git: Firmwares and translations'
            'python-pyserial: USB printing')
source=('git+https://github.com/BCN3D/Cura.git'
        'git+https://github.com/BCN3D/CuraResources.git'
        'bcn3dcura.patch')
md5sums=('SKIP'
         'SKIP'
         '82ab7bf90b0c3529a571bbb9e8f912ae')

prepare() {
    cd $srcdir
    patch --forward --strip=1 --input="${srcdir}/bcn3dcura.patch"
}

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
  cd "$srcdir/CuraResources"
  cp -r ./. "$pkgdir/usr/share/cura/resources"
}

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