summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a281859207cd7f08d790a4b3e75d4d8ff06422fb (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Maintainer: Ronny Lorenz <ronny at tbi dot univie dot ac dot at>
# Contributor: Gregor Entzian <entzian at tbi dot univie dot ac dot at>
# Contributor: Maho Nakata <maho at riken dot jp>

pkgbase=mlapack
pkgname=('mlapack')
pkgver=0.8.1
pkgrel=4
pkgdesc="Multiple precision linear algebra package (fork of MPLAPACK)"
arch=('x86_64' 'i686')
license=('Custom')
url=""
groups=('mlapack')
makedepends=( 'qd'
              'gmp'
              'mpfr'
              'libmpc'
              'libtool')

checkdepends=('check')

source=(https://github.com/RaumZeit/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz)

sha256sums=('a0810b16b85f442f90933f04a5e4a4e8fb3ec234d755e1ed5ef72dcf04d4709a')

build() {
  cd "${srcdir}/mlapack-${pkgver}"
  ./configure \
      --prefix=/usr \
      --enable-gmp \
      --enable-mpfr \
      --enable-qd \
      --enable-dd \
      --enable-double \
      --enable-__float128 \
      --enable-longdouble \
      --enable-optimization \
      --with-system-gmp \
      --with-system-mpfr \
      --with-system-mpc \
      --with-system-qd \
      --disable-benchmark \
      --disable-examples \
      --disable-reference \
      CPPFLAGS=-fpermissive
  make
}

check() {
  cd "$srcdir/${pkgname}-${pkgver}"
  make check
}

package() {
  depends=('qd'
           'gmp'
           'mpfr'
           'libmpc')
  provides=("mlapack=${pkgver}")


  # install library and header files
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install

  # install pkg-config file
  install -Dm644 mlapack.pc "$pkgdir/usr/lib/pkgconfig/mlapack.pc"

  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}