1 # Maintainer: Pierre DOUCET <pierre at equinoxefr.org>
6 pkgdesc="Gerber to gcode file converter"
8 url="http://sourceforge.net/apps/mediawiki/pcb2gcode/index.php?title=Main_Page"
12 provides=('pcb2gcode')
15 _gitroot=git://pcb2gcode.git.sourceforge.net/gitroot/pcb2gcode/pcb2gcode
21 msg "Connecting to GIT server...."
23 if [[ -d "$_gitname" ]]; then
24 cd "$_gitname" && git pull origin
25 msg "The local files are updated."
27 git clone "$_gitroot" "$_gitname"
30 msg "GIT checkout done or server timeout"
31 msg "Starting build..."
33 rm -rf "$srcdir/$_gitname-build"
34 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35 cd "$srcdir/$_gitname-build"
42 automake --add-missing
44 ./configure --prefix=/usr
50 cd "$srcdir/$_gitname-build"
51 make DESTDIR="$pkgdir/" install