updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / suitesparse-lgpl / PKGBUILD
blob520466b2ca4618237503d9aa938b397f42a239bb
1 # Contributor: Ilya Mezhirov <mezhirov@gmail.com>
3 pkgname=suitesparse-lgpl
4 pkgver=3.6.1
5 pkgrel=1
6 pkgdesc="A collection of sparse matrix libraries (LGPL-compatible only)"
7 url="http://www.cise.ufl.edu/research/sparse/SuiteSparse/"
8 arch=('i686' 'x86_64')
9 conflicts=('suitesparse' 'umfpack')
10 depends=()
11 makedepends=('gcc-fortran')
12 license=('LGPL')
13 source=(http://www.cise.ufl.edu/research/sparse/SuiteSparse/SuiteSparse-$pkgver.tar.gz UFconfig.patch Makefile.patch)
14 md5sums=('88a44890e8f61cdbb844a76b7259d876'
15          '87b75277c4d7faf04812e1a811f24f09'
16          'fe928afba56becb1f7404fcf33642d0a')
19 build() {
20     cd "$srcdir/SuiteSparse"
21     patch -p1 <"${srcdir}/UFconfig.patch" || return 1
22     patch -p1 <"${srcdir}/Makefile.patch" || return 1
24     LIBDIR="${pkgdir}/usr/lib"
25     INCDIR="${pkgdir}/usr/include/suitesparse"
26     mkdir -p "$LIBDIR" 
27     mkdir -p "$INCDIR"
28     export pkgdir
29     make install || return 1
31     chmod 644 "$LIBDIR"/* "$INCDIR"/*