summaryrefslogtreecommitdiff
path: root/pcr/cadabra2/PKGBUILD
blob: 39491009899da615740bfef186690df95b31b0d1 (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
# Maintainer: David P. <megver83@parabola.nu>
# Contributor: Tarn Burton <twburton at gmail dot com>

pkgname='cadabra2'
pkgver=2.1.4
pkgrel=1
pkgdesc="A computer algebra system designed specifically for the solution of problems encountered in field theory."
arch=('i686' 'x86_64')
url="http://cadabra.science/"
license=('GPL')
conflicts=('cadabra2-git')
depends=('python-matplotlib' 'gtkmm3' 'jsoncpp' 'mathjax' 'boost-libs' 'python-sympy' 'texlive-core')
makedepends=('cmake' 'boost' 'git')
source=("$pkgname::git+https://github.com/kpeeters/cadabra2#tag=$pkgver" "package.patch")
md5sums=('SKIP'
         '2cf414a7280fd64858d1d19d38d4bd8c')
install=package.install

prepare() {
  cd "${srcdir}/${pkgname}"
  patch -Np1 -i ../package.patch
}

build() {
  cd $pkgname
  mkdir -p build
  cd build
  cmake -DCMAKE_SKIP_RPATH=true -DCMAKE_INSTALL_PREFIX=/usr ..
  make
}

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