1 # Maintainer: Torsten Wagner <tottiwagner@yahoo.de>
5 pkgdesc="Creating 3D CAD objects or extrude 2D CAD drawings by a C like description language."
8 url="http://openscad.org/"
9 depends=('qt' 'cgal' 'eigen' 'opencsg' 'bison' 'flex' 'gcc-libs')
11 makedepends=('git' 'sed')
12 conflicts=('openscad','openscad-svn')
14 _gitroot="https://github.com/openscad/openscad.git"
21 if [ -d ${_gitname} ]; then
22 (cd ${_gitname} && git pull origin ${_gitbranch})
24 git clone ${_gitroot} ${_gitname}
26 msg "Git checkout done or server timeout"
28 rm -rf "${srcdir}/${_gitname}-build"
29 cp -r "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
30 cd "${srcdir}/${_gitname}-build"
31 msg "Starting qmake..."
33 msg "Apply patch to makefile to install files not in /usr/local"
34 sed -i "s|/usr/local/|/usr/|g" Makefile
35 msg "Starting make..."
40 cd "${srcdir}/${_gitname}-build"
41 make INSTALL_ROOT="${pkgdir}" install