4 pkgdesc="generate a POVray mesh or a PostScript or PDF view from an STL file"
6 url="http://rsmith.home.xs4all.nl/software/#stl2pov"
9 optdepends=('python-reportlab: for stl2pdf support')
10 provides=('stl2ps' 'stl2pdf')
11 conflicts=('stl2ps' 'stl2pdf')
13 source=('http://rsmith.home.xs4all.nl/software/py-stl-1ce0725.zip')
14 sha256sums=('2c9324d9916cdf86d2de6cfed266a23a3c23faaf304e00ec8693205830d31fc6')
17 cd "$srcdir/py-stl-$pkgver"
18 # the limit truncates valid vectors to 0 and raises errors... increase it
19 sed -i 's/LIMIT = 1e-7/LIMIT = 1e-40/' -- stl.py
23 cd "$srcdir/py-stl-$pkgver"
24 python2 setup.py install --root="$pkgdir/" --optimize=1