1 # Contributor: Perttu Ahola <gmail/celeron55>
2 # Maintainer: Alex Hall <alumni.purdue.edu/hall12>
6 pkgdesc="CNC Plugin for HeeksCAD"
8 url=('http://code.google.com/p/heekscnc')
9 makedepends=('git' 'python2' 'wxgtk' 'gtkglext' 'opencascade')
10 depends=('python2' 'wxgtk' 'gtkglext' 'opencascade')
11 optdepends=('libarea: functions for pocketing and profiling operations'
12 'libactp: an implementation of the Adaptive Clearing Tool Path algorithm'
13 'opencamlib: provides support for zig-zag operation')
15 conflicts=('heekscnc')
17 source=('PythonStuff.cpp.patch')
18 md5sums=('fe5b0dd5787f5ecb85e2665e68e34b3c')
20 _gitrepo=git://github.com/Heeks
25 # need copy of HeeksCad source
26 if [ -d heekscad/.git ]; then
30 git clone $_gitrepo/heekscad.git
34 if [ -d heekscnc/.git ]; then
38 git clone $_gitrepo/heekscnc.git
42 msg "git clone done or server timeout"
46 patch < $srcdir/PythonStuff.cpp.patch
49 msg "Starting make..."
52 mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
53 cp COPYING "$pkgdir/usr/share/licenses/$pkgname/"
56 cmake -DCMAKE_INSTALL_PREFIX=/usr .
57 make OPENCASCADE_DIR=/opt/opencascade
61 cd $srcdir/heekscad/heekscnc
62 make install DESTDIR=$pkgdir