summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2f6b5fc4c27
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Ross Whitfield <whitfieldre@ornl.gov>
+pkgname=('python-nexpy' 'python2-nexpy')
+_pkgname=nexpy
+pkgver=0.8.1
+pkgrel=1
+pkgdesc="NeXpy: A Python GUI to analyze NeXus data"
+url="http://nexpy.github.io/nexpy"
+arch=("any")
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-six' 'python2-six')
+source=("https://github.com/nexpy/nexpy/archive/v${pkgver}.tar.gz")
+md5sums=('04eccf4f06eb1532cc76fb631a96af79')
+
+prepare() {
+ cp -a "${srcdir}/$_pkgname-$pkgver"{,-py2}
+}
+
+package_python-nexpy() {
+ depends=('python-numpy' 'python-h5py' 'python-scipy' 'python-nexusformat' 'jupyter' 'python-matplotlib')
+ cd "$srcdir/$_pkgname-$pkgver"
+ python setup.py install --root="$pkgdir/" --optimize=1
+}
+
+package_python2-nexpy() {
+ depends=('python2-numpy' 'python2-h5py' 'python2-scipy' 'python2-nexusformat' 'ipython2-notebook' 'python2-matplotlib')
+ cd "$srcdir/$_pkgname-$pkgver-py2"
+ python2 setup.py install --root="$pkgdir/" --optimize=1
+ # Conflict with python3 version
+ mv $pkgdir/usr/bin/nexpy{,2}
+}