diff options
author | Ross Whitfield | 2016-07-19 16:47:20 -0400 |
---|---|---|
committer | Ross Whitfield | 2016-07-19 16:47:20 -0400 |
commit | 2f740fe6af57a38b56a19c3c2d81208ece5aa735 (patch) | |
tree | 1f97ef9bef210e2592766c408c207d4b8a629afd /PKGBUILD | |
download | aur-2f740fe6af57a38b56a19c3c2d81208ece5aa735.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 30 |
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} +} |