summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c7aafa9c59bcc94ffeaf7c040b5379b9d9bf5a52 (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
# Maintainer: Heavysink <winstonwu91 at gmail>
pkgname=lis
pkgver=2.0.22
pkgrel=1
pkgdesc="Library of Iterative Solvers for linear systems"
arch=(i686 x86_64)
url="http://www.ssisc.org/lis"
license=('GPL3')
depends=('openmpi')
makedepends=('git' 'gcc-fortran')
source=("git://github.com/anishida/lis.git#branch=master")
md5sums=('SKIP')

pkgver() {
    cd "$srcdir/$pkgname"
    git describe --tags $(git rev-list --tags --max-count=1)
}

build() {
  cd "$srcdir/$pkgname"
    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"
  make check
 }
 
package()
{
  cd "$srcdir/$pkgname"
  make install DESTDIR=$pkgdir
}