summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d85116c09a5d28bb3a4d5bea435e80bcbb7a9b78 (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
# Maintainer: Patrick josé Pereira  <gmail.com@patrickelectric>
pkgname=gcode3d-git
confilicts=('gcode3d')
pkgver=afc5014
pkgrel=1
pkgdesc="GCode Visualizer"
arch=('i686' 'x86_64')
url="https://github.com/patrickelectric/Gcode3D"
license=('GPL2')
buildDepends=('git' 'cmake' 'extra-cmake-modules')
depends=('qt5-base' 'qt5-declarative')
source=('git://github.com/patrickelectric/Gcode3D.git')
md5sums=(SKIP)

pkgver() {
  cd "Gcode3D"
  git log --pretty=format:'%h' -n 1
}

build() {
  cd "Gcode3D"
  cmake -DCMAKE_INSTALL_PREFIX=$(qtpaths --install-prefix) -DCMAKE_BUILD_TYPE=Release CMakeLists.txt
  make
  make install
}

package(){
  cd "GCode3D"
  make install
}