summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinRuoshui2018-03-15 10:15:47 +0800
committerLinRuoshui2018-03-15 10:15:47 +0800
commit72260c32963f052b7c3d145832ba642559ceef69 (patch)
treefd7982a40b3fadf3817b3239b4055561962ebac9
downloadaur-72260c32963f052b7c3d145832ba642559ceef69.tar.gz
Initial import
-rw-r--r--.SRCINFO31
-rw-r--r--.gitignore8
-rw-r--r--PKGBUILD47
3 files changed, 86 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..96d72ab463e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,31 @@
+pkgbase = python-pyfr-git
+ pkgdesc = Python based framework for solving advection-diffusion type problems on streaming architectures (git version)
+ pkgver = 0.1.0.r720.g1dda3aa
+ pkgrel = 1
+ url = http://www.pyfr.org/
+ arch = i686
+ arch = x86_64
+ license = BSD
+ makedepends = python-setuptools
+ depends = python-gimmik>=2.0
+ depends = python-h5py>=2.6
+ depends = python-numpy>=1.8
+ depends = python-pytools>=2016.2.1
+ depends = python-mako>=1.0.0
+ depends = python-mpi4py>=2.0
+ optdepends = metis>=5.0: needed for running PyFR in parallel
+ optdepends = scotch>=6.0: needed for running PyFR in parallel
+ optdepends = python-pymic: needed for Xeon Phi MIC backend
+ optdepends = python-pycuda>=2015.1: needed for CUDA backend
+ optdepends = cuda>=4.2: needed for CUDA backend
+ optdepends = python-pyopencl: needed for OpenCL backend
+ optdepends = clblas: needed for OpenCL backend
+ optdepends = cblas: needed for OpenMP backend
+ optdepends = openblas: alternative blas for OpenMP backend
+ optdepends = cgns>=3.3: for importing CGNS meshes
+ conflicts = python-pyfr
+ source = git+https://github.com/vincentlab/PyFR.git
+ sha256sums = SKIP
+
+pkgname = python-pyfr-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..7e89ea4c914
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,8 @@
+*.pkg.tar*
+*.src.tar*
+*.tgz
+*.tar.gz
+src
+*~
+PyFR*
+pkg
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..304b9d5e552
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,47 @@
+# Maintainer: Lin Ruoshui <lin.ruohshoei@gmail.com>
+
+pkgname=('python-pyfr-git')
+_pkgname=('PyFR')
+pkgver=0.1.0.r720.g1dda3aa
+pkgrel=1
+pkgdesc="Python based framework for solving advection-diffusion type problems on streaming architectures (git version)"
+arch=('i686' 'x86_64')
+url="http://www.pyfr.org/"
+license=('BSD')
+conflicts=('python-pyfr')
+makedepends=('python-setuptools')
+source=("git+https://github.com/vincentlab/${_pkgname}.git")
+#mpi4py
+depends=( 'python-gimmik>=2.0'
+ 'python-h5py>=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() {
+ msg "Building pyfr"
+ 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
+}