updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / arpack++ / PKGBUILD
blob5f0ee16d5021d30d88cdef1f17c3b9cc4387527d
1 # Contributor: Carlo Casta <carlo.casta at gmail dot com>
3 pkgname=arpack++
4 pkgver=1.2
5 pkgrel=1
6 pkgdesc="an object-oriented version of the ARPACK package"
7 arch=('any')
8 url="http://www.ime.unicamp.br/~chico/arpack++/"
9 license=('BSD')
10 depends=('glibc' 'arpack' 'lapack' 'blas')
11 optdepends=('superlu' 'umfpack')
12 source=(http://www.ime.unicamp.br/~chico/${pkgname}/${pkgname}.tar.gz
13         http://reuter.mit.edu/index.php/download?f=arpack%2B%2B1.2.patch.diff)
14 md5sums=('ba746bd46ea53ed2f141c806e36c60b2' 'd76be44d4962f362675de541899f1787')
16 build()
18   cd ${srcdir}/${pkgname}
20   # patch required for gcc > 4
21   mv ../download?f=arpack%2B%2B1.2.patch.diff ../${pkgname}${pkgver}.patch.diff || return 1
22   patch -Np1 -i ../${pkgname}${pkgver}.patch.diff || return 1
24   # install headers
25   install -d ${pkgdir}/usr/include/arpack++
26   install include/*.h ${pkgdir}/usr/include/arpack++
28   # install docs
29   install -d ${pkgdir}/usr/share/doc/arpack++
30   install doc/* ${pkgdir}/usr/share/doc/arpack++
32   # install tutorials
33   install -d ${pkgdir}/usr/share/arpack++/examples
34   cp -r examples/* ${pkgdir}/usr/share/arpack++/examples