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

pkgname=cura-fdm-materials-git
pkgver=r590.aa3c33c
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/fdm_materials"
provides=('cura-fdm-materials' 'cura-resources-materials')
conflicts=('cura-fdm-materials' 'cura-resources-materials')
makedepends=('git' 'cmake')
source=('git+https://github.com/Ultimaker/fdm_materials')
md5sums=('SKIP')

pkgver() {
  cd fdm_materials
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  mkdir -p fdm_materials/build
  cd fdm_materials/build
  cmake -DCMAKE_INSTALL_PREFIX=/usr ..
  make
}

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

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