1 # Maintainer: archlid <a_becker {at} live {dot} de>
5 pkgdesc="A free software library for the computation of three dimensional Voronoi cells."
7 url="http://math.lbl.gov/voro++/"
9 depends=('perl' 'gcc-libs')
10 source=(http://math.lbl.gov/voro++/download/dir/${pkgname}_$pkgver.tar.gz)
11 md5sums=('7c7c262615b61c90af80dba4ac661706')
14 cd "$srcdir/$pkgname/src"
20 install -d $pkgdir/usr/bin $pkgdir/usr/share/licenses/$pkgname $pkgdir/usr/share/$pkgname/{doc,doc/html,examples,scripts}
21 install -m644 $srcdir/$pkgname/LICENSE $pkgdir/usr/share/licenses/$pkgname
22 install -m644 $srcdir/$pkgname/NEWS $pkgdir/usr/share/$pkgname
23 install -m644 $srcdir/$pkgname/scripts/* $pkgdir/usr/share/$pkgname/scripts
24 install -m644 $srcdir/$pkgname/html/* $pkgdir/usr/share/$pkgname/doc/html
25 install -m755 $srcdir/$pkgname/bin/voro++ $pkgdir/usr/bin/
26 install -m644 $srcdir/$pkgname/{latex/*,doc/*} $pkgdir/usr/share/$pkgname/doc
27 cp -r $srcdir/$pkgname/examples/* $pkgdir/usr/share/$pkgname/examples
28 chmod -R 755 $pkgdir/usr/share/$pkgname/examples
29 find $pkgdir/usr/share/$pkgname/examples -type f -exec chmod 644 '{}' \;