summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6ababeb0fd913951e047842d43d295049e019083 (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
# Maintainer : talleyhoe <talleyhoe at protonmail dot com>
# Contributor: Erhad Husovic

pkgname='cadabra2-git'
pkgver=2.3.9.3
pkgrel=1
pkgdesc="A computer algebra system (pre-release version) designed specifically for the solution of problems encountered in field theory."
arch=('x86_64')
url="http://cadabra.science/"
license=('GPL')
conflicts=('cadabra2')
depends=(
  'boost-libs'
  'glibmm'
  'gmp'
  'gtkmm3'
  'jsoncpp'
  'mathjax'
  'pcre'
  'python-ipykernel'
  'python-matplotlib'
  'python-sympy'
  'sqlite'
  'texlive-latexextra'
  'texlive-science'
)
makedepends=(
  'git'
  'boost'
  'cmake'
)
source=("git+https://github.com/kpeeters/cadabra2.git")
sha256sums=('SKIP')

prepare() {
  mkdir -p "$srcdir/cadabra2/build"
}

build() {
  cd "$srcdir/cadabra2/build"
  cmake .. \
        -DCMAKE_SKIP_RPATH=true \
        -DCMAKE_INSTALL_PREFIX=/usr
  make
}

check() {
  cd "$srcdir/cadabra2/build"
  make test
}

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