summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 34f58620682d5e799b27a6527e5febe07ee9a01c (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
# Maintainer: Alexander Kobel <a-kobel@a-kobel.de>

pkgname=mpsolve-git
pkgver=3.2.1.r12.g90f4999
pkgrel=1
pkgdesc="Multiprecision rootfinder for complex roots of univariate polynomials"
url="http://numpi.dm.unipi.it/software/mpsolve"
arch=('i686' 'x86_64')
license=('GPL')
depends=('gmp' 'mpfr')
optdepends=('cython: Python bindings'
            'gtk3: Graphical debugger'
            'qt5-base: Graphical interface xmpsolve')
makedepends=('git' 'gcc-fortran')
options=(!libtool)
provides=('mpsolve')
conflicts=('mpsolve')
source=("git+https://github.com/robol/MPSolve.git")
sha256sums=('SKIP')

pkgver () {
  cd MPSolve
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build () {
  cd "${srcdir}/MPSolve"
  ./autogen.sh
  ./configure --prefix=/usr --disable-debug-build --disable-examples
  make
}

check () {
  cd "${srcdir}/MPSolve"
  make check
}

package () {
  cd "${srcdir}/MPSolve"
  make DESTDIR="${pkgdir}" install

  if [ -e doc/html ]; then
    cd doc/html
    find . -type f -exec install -D -m644 "{}" "${pkgdir}/usr/share/doc/${pkgname}/{}" \;
  fi
}