summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 236a378c7eb2994f16405e091d4e3d1f7e3d56f9 (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
pkgname=stl2pov
pkgver=3.1
pkgrel=4
pkgdesc="generate a POVray mesh or a PostScript or PDF view from an STL file"
arch=('any')
url="http://rsmith.home.xs4all.nl/software/py-stl-stl2pov.html"
license=(BSD)
depends=('python2')
optdepends=('python2-cairo: for stl2pdf support')
provides=('stl2ps' 'stl2pdf')
conflicts=('stl2ps' 'stl2pdf')
options=(!emptydirs)
source=("http://rsmith.home.xs4all.nl/files/py-stl-${pkgver}.zip")
sha256sums=('d5a2eccbd627d05b28d3b6d619202d3a55b4d94dbf21a63b68109688ebc8e929')

prepare()
{
  cd "$srcdir/py-stl-$pkgver"
  # the limit truncates valid vectors to 0 and raises errors... increase it
  sed -i 's/LIMIT = 1e-7/LIMIT = 1e-40/' -- stl.py
}

package() {
  cd "$srcdir/py-stl-$pkgver"
  python2 setup.py install --root="$pkgdir/" --optimize=1
}