summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b95f91e7222b63fec5a7c24c28b2d90f9dff0a59 (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
# Maintainer: Jelle van der Waa <jelle@archlinux.org>
# Contributor: Grey Christoforo <first name [at] last name [dot] net>

pkgname=arcus-beta
pkgver=4.0
pkgrel=2
pkgdesc="Communication library between internal components for Ultimaker software"
url="https://github.com/Ultimaker/libArcus"
arch=('x86_64')
license=('AGPL')
conflicts=('arcus' 'libarcus-git')
makedepends=('cmake' 'sip')
depends=('python' 'protobuf' 'python-sip')
source=("git+https://github.com/Ultimaker/libArcus#branch=${pkgver}")
md5sums=('SKIP')

build() {
  pwd
  cd libArcus
  mkdir -p build
  cd build
  
  cmake .. \
  -DCMAKE_INSTALL_PREFIX=/usr \
  -DCMAKE_BUILD_TYPE=Release \
  -DBUILD_EXAMPLES=OFF  \
  -DCMAKE_INSTALL_LIBDIR=/usr/lib/

  make
}

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

  install -Dm644 "${srcdir}/libArcus/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

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