summaryrefslogtreecommitdiff
path: root/pcr/cadabra2/PKGBUILD
diff options
context:
space:
mode:
authorDavid P <megver83@openmailbox.org>2017-05-08 17:46:37 -0300
committerDavid P <megver83@openmailbox.org>2017-05-08 17:46:37 -0300
commitd0395dedc45a57584309d7d8b24e012061354d9d (patch)
treee9bcb4e075aef96559bcdb6a491754f527952a9b /pcr/cadabra2/PKGBUILD
parent7dad8cba7a5e894f80e65314d368ac311524e405 (diff)
downloadabslibre-d0395dedc45a57584309d7d8b24e012061354d9d.tar.gz
abslibre-d0395dedc45a57584309d7d8b24e012061354d9d.tar.bz2
abslibre-d0395dedc45a57584309d7d8b24e012061354d9d.zip
Added cadabra2
Diffstat (limited to 'pcr/cadabra2/PKGBUILD')
-rw-r--r--pcr/cadabra2/PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/pcr/cadabra2/PKGBUILD b/pcr/cadabra2/PKGBUILD
new file mode 100644
index 000000000..394910098
--- /dev/null
+++ b/pcr/cadabra2/PKGBUILD
@@ -0,0 +1,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
+}