summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 502cf965bc0917a55075b488625e9bb045a2075a (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
# Maintainer: Lin Ruoshui <lin.ruohshoei@gmail.com>
# Contributor: Masoud <mpoloton@gmail.com>

pkgname=('python-pyfr')
_pkgname=PyFR
pkgver=1.8.0
pkgrel=1
pkgdesc="Python based framework for solving advection-diffusion type problems on streaming architectures"
arch=('i686' 'x86_64')
url="http://www.pyfr.org/"
license=('BSD')
makedepends=('python-setuptools')
source=("https://github.com/vincentlab/PyFR/archive/v${pkgver}.tar.gz")
#mpi4py
#	  'python-h5py>=2.6'
depends=( 'python-gimmik>=2.0'
	  'python-h5py-openmpi>=2.6'
	  'python-numpy>=1.8'
	  'python-pytools>=2016.2.1'
	  'python-mako>=1.0.0'
	  'python-mpi4py>=2.0')
optdepends=('metis>=5.0: needed for running PyFR in parallel'
	    'scotch>=6.0: needed for running PyFR in parallel'
            'python-pymic: needed for Xeon Phi MIC backend'
	    'python-pycuda>=2015.1: needed for CUDA backend' 
	    'cuda>=4.2: needed for CUDA backend'
            'python-pyopencl: needed for OpenCL backend' 
            'clblas: needed for OpenCL backend' 
            'cblas: needed for OpenMP backend'
            'openblas: alternative blas for OpenMP backend'
	    'cgns>=3.3: for importing CGNS meshes' )
            
sha256sums=('60cb7bb4f3c3dcd0fdc9c3067aadee206220beb179706be7e84c8ddabbc51e06')

build() {
  msg "Building pyfr"
  cd "$srcdir"/${_pkgname}-${pkgver}
  python setup.py build
}

package() {
  cd "$srcdir"/${_pkgname}-${pkgver}
  python setup.py install --skip-build --root="$pkgdir" --optimize=1
  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}