summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 15c9675b92e1de304e45fded8cd796d52bfcd442 (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
# Maintainer: Grey Christoforo <first name at last name dot net>
pkgname=stl2ngc-git
pkgver=18.273f1cc
pkgrel=1
pkgdesc="converts an STL file to LinuxCNC compatible G-Code."
arch=('x86_64')
url="https://github.com/koppi/stl2ngc"
license=('unknown')
depends=('opencamlib-git')
source=('stl2ngc-git::git://github.com/koppi/stl2ngc.git' Makefile.patch)
md5sums=('SKIP'
         '39a6145d878c3b93f7162945d186a72a')

pkgver() {
  cd "${srcdir}/${pkgname}"
  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

prepare() {
  cd "${srcdir}/${pkgname}"
  patch -Np1 -i ../Makefile.patch
}

build() {
  cd "${srcdir}/${pkgname}"
  make
}

package() {
  cd "$srcdir/${pkgname}"
  install -D -t ${pkgdir}/usr/bin stl2ngc
}