updated on Sun Jan 22 12:09:12 UTC 2012
[aur-mirror.git] / sdpa / PKGBUILD
blob54bd5f74929101d4744d2e4efeb89a02e0c0671a
1 # Contributor: Ilya Mezhirov <mezhirov at gmail com>
2 pkgname=sdpa
3 pkgver=7.3.1
4 pkgrel=1
5 pkgdesc="An SDP optimizer based on primal-dual interior point method"
6 arch=('i686' 'x86_64')
7 url="http://sdpa.indsys.chuo-u.ac.jp/sdpa/index.html"
8 license=('GPL')
9 groups=()
10 depends=('blas' 'lapack') # ('atlas-lapack') also might work
11 makedepends=('automake' 'autoconf')
12 optdepends=()
13 provides=()
14 conflicts=('mumps')
15 replaces=()
16 backup=()
17 options=()
18 install=
19 source=(http://sdpa.indsys.chuo-u.ac.jp/sdpa/files/sdpa.7.3.1.src-20090729.tar.gz)
20 noextract=()
21 md5sums=(5b687cd3a08c57cc8140f9f5d71a8bf9) #generate with 'makepkg -g'
23 build() {
24   cd "$srcdir/$pkgname.$pkgver.src"
26   patch -Np1 <../../sdpa-dir-fix.patch || return 1
27   patch -Np1 <../../sdpa-param-fix.patch || return 1
29   # The main Makefile runs another Makefile to build MUMPS,
30   # and this second Makefile uses grep and cut
31   # to find options in the first Makefile
32   # and transplant them into the MUMPS Makefile. 
33   # What could possibly go wrong?
34   patch -Np1 <../../sdpa-mumps-fix.patch || return 1
36   aclocal
37   automake --foreign
38   autoconf
40   ./configure --prefix=/usr
41   make || return 1
42   make DESTDIR="$pkgdir/" install
45 # vim:set ts=2 sw=2 et: