summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 47aa67a4dfedb8fe6da87efa154d7ed0176668d0 (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
# Maintainer: Heavysink <winstonwu91 at gmail>
pkgname=lis
pkgver=2.0.22
pkgrel=2
pkgdesc="Library of Iterative Solvers for linear systems"
arch=(i686 x86_64)
url="http://www.ssisc.org/lis"
license=('GPL3')
depends=('openmpi')
makedepends=('gcc-fortran')
source=("https://github.com/anishida/lis/archive/${pkgver}.tar.gz")
md5sums=('2f65f2b37ae2bdb5caad643f210e8d38')

build() {
  cd "$srcdir/$pkgname-$pkgver"
    export FFLAGS+=" -fallow-argument-mismatch"
    export FCFLAGS+=" -fallow-argument-mismatch"

  ./configure \
    --prefix=/usr \
    --enable-mpi \
    --enable-omp \
    --enable-shared \
    --enable-fma \
    --enable-sse2 \
    --enable-longlong \
    --enable-longdouble \
    --enable-quad \
    --enable-f90 \
    --enable-fortran
  make
}

check() {
  cd "$srcdir/$pkgname-$pkgver"
  make check
 }
 
package()
{
  cd "$srcdir/$pkgname-$pkgver"
  make install DESTDIR=$pkgdir
}