summaryrefslogtreecommitdiff
path: root/extra/umfpack/PKGBUILD
blob: d2e8aa76435e335acd68e6dd030cb28a99b5ffae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# $Id: PKGBUILD 16363 2010-04-29 09:59:57Z ronald $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: iKevin <kellwood at ameritech dot net>

pkgname=umfpack
pkgver=5.5.0
_ufcfgver=3.5.0
_amdver=2.2.1
_cholmodver=1.7.1
_colamdver=2.7.2
_ccolamdver=2.7.2
pkgrel=1.1
pkgdesc="A multifrontal direct solver for unsymmetric linear systems (AMD/${_amdver}, UFConfig/${_ufcgfgver})"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.cise.ufl.edu/research/sparse/umfpack"
license=('LGPL')
makedepends=('lapack' 'blas')
noextract=(CHOLMOD-${_cholmodver}.tar.gz
	COLAMD-${_colamdver}.tar.gz
	CCOLAMD-${_ccolamdver}.tar.gz)
source=(http://www.cise.ufl.edu/research/sparse/umfpack/UMFPACK-$pkgver.tar.gz
	http://www.cise.ufl.edu/research/sparse/UFconfig/UFconfig-${_ufcfgver}.tar.gz
	http://www.cise.ufl.edu/research/sparse/amd/AMD-${_amdver}.tar.gz
	http://www.cise.ufl.edu/research/sparse/cholmod/CHOLMOD-${_cholmodver}.tar.gz
	http://www.cise.ufl.edu/research/sparse/colamd/COLAMD-${_colamdver}.tar.gz
	http://www.cise.ufl.edu/research/sparse/ccolamd/CCOLAMD-${_ccolamdver}.tar.gz
	UFconfig.mk)
md5sums=('19f5d8b4231ec9114718641ce51cce6e'
         '526413bbbc94f987cf79619d9110bab4'
         'b3e9679ba20635ac4847f01c01d6e992'
         '9032c5724bee43ccd8f4546338a29fac'
         '2b4e43c8ef33dacfade6d1ec49542ac1'
         '79d813d5b54951060fc264172bfb5ca6'
         'ce9731da58d58923a3cdc3fbef724c4e')

build() {
  cd "$srcdir/UMFPACK"
  cp -rf "$srcdir/UFconfig/xerbla" .
  cp -L ../UFconfig.mk $startdir/src/UFconfig
  [ $CARCH != "i686" ] && sed -i 's#CFLAGS = -O3 -fexceptions#CFLAGS = -O3 -fexceptions -fPIC#' $srcdir/UFconfig/UFconfig.mk
  make library || return 1
  install -d "$pkgdir/usr/lib" "$pkgdir/usr/include"

  install -D -m644 Lib/libumfpack.a "$pkgdir/usr/lib/libumfpack.a"
  cp $startdir/src/UMFPACK/Include/*.h $startdir/pkg/usr/include

  install -D -m644 "$srcdir/AMD/Lib/libamd.a" "$pkgdir/usr/lib/libamd.a"
  cp $startdir/src/AMD/Include/*.h $startdir/pkg/usr/include

  install -m644 "$srcdir/UFconfig/UFconfig.h" "$pkgdir/usr/include" || return 1

  # Fix permissions
  cd $startdir/pkg/usr/include
  chmod oug+r *
  cd $startdir/pkg/usr/lib
  chmod oug+r *
}