updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / voro++ / PKGBUILD
blobae1731599430de26a9817439ceb15d373d95c102
1 # Maintainer: archlid <a_becker {at} live {dot} de>
2 pkgname=voro++
3 pkgver=0.3.1
4 pkgrel=1
5 pkgdesc="A free software library for the computation of three dimensional Voronoi cells."
6 arch=('i686' 'x86_64')
7 url="http://math.lbl.gov/voro++/"
8 license=('BSD')
9 depends=('perl' 'gcc-libs')
10 source=(http://math.lbl.gov/voro++/download/dir/${pkgname}_$pkgver.tar.gz)
11 md5sums=('7c7c262615b61c90af80dba4ac661706')
13 build() {
14   cd "$srcdir/$pkgname/src"
15   make
18 package() {
19   cd "$srcdir/$pkgname"
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 '{}' \;