1 # Contributor: Carlo Casta <carlo.casta at gmail dot com>
6 pkgdesc="an object-oriented version of the ARPACK package"
8 url="http://www.ime.unicamp.br/~chico/arpack++/"
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')
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
25 install -d ${pkgdir}/usr/include/arpack++
26 install include/*.h ${pkgdir}/usr/include/arpack++
29 install -d ${pkgdir}/usr/share/doc/arpack++
30 install doc/* ${pkgdir}/usr/share/doc/arpack++
33 install -d ${pkgdir}/usr/share/arpack++/examples
34 cp -r examples/* ${pkgdir}/usr/share/arpack++/examples