4 pkgdesc="a software package and libraries for graph, mesh and hypergraph partitioning, static mapping, and sparse matrix block ordering"
5 url="http://www.labri.fr/perso/pelegrin/scotch/"
6 license="custom: CeCILL-C free/libre software license"
9 source=("http://gforge.inria.fr/frs/download.php/28043/${pkgname}_${pkgver}.tar.gz")
10 md5sums=('36d638a227f38a219b51fe8ddc2093ac')
14 cd "${srcdir}/${pkgname}_${pkgver}/src"
17 cp Make.inc/Makefile.inc.i686_pc_linux2 Makefile.inc
20 # ...and shared version
21 cp Make.inc/Makefile.inc.i686_pc_linux2.shlib Makefile.inc
27 cd "${srcdir}/${pkgname}_${pkgver}"
29 install -d "${pkgdir}/usr/bin"
30 install -d "${pkgdir}/usr/lib"
31 install -d "${pkgdir}/usr/include/${pkgname}"
32 install -d "${pkgdir}/usr/man"
33 install -d "${pkgdir}/usr/share/doc/${pkgname}"
34 install -d "${pkgdir}/usr/share/licenses/${pkgname}"
39 install -m755 ${prog} ${pkgdir}/usr/bin/scotch_${prog}
43 cp lib/* ${pkgdir}/usr/lib
44 cp include/* ${pkgdir}/usr/include/scotch
45 cp -r man/* ${pkgdir}/usr/man
46 cp -r doc/* ${pkgdir}/usr/share/doc/scotch
47 cp doc/CeCILL-C_V1-en.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"