summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 905a2e89689270592f008dcde54c604ba16d0e23 (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: LinRs <LinRs at users.noreply.github.com

pkgname=('python-pyfr-git')
_pkgname=('PyFR')
pkgver=0.1.0.r762.geb0f5d5
pkgrel=1
pkgdesc="Python based framework for solving advection-diffusion type problems on streaming architectures (git version)"
arch=('x86_64')
url="http://www.pyfr.org/"
license=('BSD')
conflicts=('python-pyfr')
makedepends=('python-setuptools' 'git')
source=("${_pkgname}::git+https://github.com/vincentlab/${_pkgname}.git#branch=develop")
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=('SKIP')

pkgver() {
    cd "$_pkgname"
    git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
    cd "$srcdir"/PyFR
    python setup.py build
}
package() {
    cd "$srcdir"/PyFR
    python setup.py install --skip-build --root="$pkgdir" --optimize=1
    install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
}