summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: eecada13d54154dd267df5e28ff034c049cb656b (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
56
57
58
59
60
61
62
63
# Maintainer: Ross Whitfield <whitfieldre@ornl.gov>
# Contributor: Harry Jeffery <harry|@|exec64|.|co|.|uk>

pkgname=mantid
pkgver=3.11.0
pkgrel=1
pkgdesc="Data analysis toolkit for neutron based instrument data"
url="http://www.mantidproject.org/"
arch=('x86_64' 'i686')
license=('GPL')
depends=(
  'boost-libs'
  'glu'
  'gperftools'
  'gsl'
  'hdf4'
  'hdf5'
  'intel-tbb'
  'jsoncpp'
  'libnexus'
  'libxslt'
  'muparser'
  'opencascade'
  'poco'
  'python2'
  'python2-dateutil'
  'python2-h5py'
  'python2-numpy'
  'python2-pyqt4'
  'python2-pyzmq'
  'python2-qtconsole'
  'python2-scipy'
  'python2-sip'
  'python2-yaml'
  'qscintilla'
  'qtwebkit'
  'qwt5'
  'qwtplot3d'
  )

makedepends=(
  'boost'
  'cmake'
  'python2-sphinx'
  'python2-sphinx-bootstrap-theme'
  )
source=("$pkgname::git+https://github.com/mantidproject/mantid.git#tag=v${pkgver}")
sha1sums=('SKIP')

build() {
  cd "${srcdir}/mantid"
  mkdir -p "${srcdir}/build"
  cd "${srcdir}/build"
  cmake -DPYTHON_EXECUTABLE=/usr/bin/python2 \
        -DCMAKE_CXX_VISIBILITY_PRESET=default \
        "${srcdir}/mantid"
  make
}

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