updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / scotch / PKGBUILD
blobfa79a1b9919bb564f6c09407fc117fe51a90f8a2
1 pkgname=scotch
2 pkgver=5.1.11
3 pkgrel=1
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"
7 depends=('zlib')
8 arch=('i686' 'x86_64')
9 source=("http://gforge.inria.fr/frs/download.php/28043/${pkgname}_${pkgver}.tar.gz")
10 md5sums=('36d638a227f38a219b51fe8ddc2093ac')
12 build()
14         cd "${srcdir}/${pkgname}_${pkgver}/src"
16         # compile both static
17         cp Make.inc/Makefile.inc.i686_pc_linux2 Makefile.inc
18         make
20         # ...and shared version
21         cp Make.inc/Makefile.inc.i686_pc_linux2.shlib Makefile.inc
22         make
25 package()
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}"
36         cd bin
37         for prog in *
38         do
39                 install -m755 ${prog} ${pkgdir}/usr/bin/scotch_${prog}
40         done
41         cd ..
42         
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"