summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a07e73f47d2d25692ea0a258b754601b9903259e (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
# Maintainer: sygnmdev <sygnmdev at sygnm dot org>
pkgname=sygnm
pkgver=1.0.0alpha1
pkgrel=2
pkgdesc="Computer algebra framework (currently alpha, install only if you know what you are doing)"
arch=('i686' 'x86_64' 'armv6h')
url="https://sygnm.org/"
license=('AGPL3')
depends=('flint' 'arb' 'boost-libs' 'icu' 'gmp' 'qt5-base' 'readline' 'python' 'sqlite' 'libmpc' 'mpfr' 'gmp-ecm' 'eigen' 'ruby' 'jdk7-openjdk')
makedepends=('boost' 'cmake' 'swig' 'python' 'python-setuptools' 'pandoc' 'python-pypandoc' 'ninja')
source=("sygnm-git::git+https://git.sygnm.org/sygnmdev/sygnm.git#tag=1.0.0alpha1")
options=(debug !strip)
conflicts=('sygnm-git')

md5sums=('SKIP')

build() {
  cd "${srcdir}/sygnm-git"
  cmake . -GNinja -DCMAKE_BUILD_TYPE=Debug -DSYGNM_BUILD_ALL=On -DCMAKE_INSTALL_PREFIX=/usr
  ninja -j1
}

package() {
 cd "${srcdir}/sygnm-git"
 DESTDIR="$pkgdir/" ninja install
 cd sygnm-jupyter
 python setup.py install --root="$pkgdir/" --optimize=1
 cd ../sygnm/python
 python setup.py install --root="$pkgdir/" --optimize=1
}