diff options
author | ArcturusB | 2017-05-22 14:06:09 +0200 |
---|---|---|
committer | ArcturusB | 2017-05-22 14:06:09 +0200 |
commit | 68c90677d8f5e8d778730e6032c2fc66921e2050 (patch) | |
tree | c7686e6e52f81d35cdee76c5baa90346e0d45c78 | |
download | aur-68c90677d8f5e8d778730e6032c2fc66921e2050.tar.gz |
init
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | PKGBUILD | 46 |
2 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..18d147cb882d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,25 @@ +pkgbase = chiantipy-git + pkgdesc = A python package to calculate the radiative properties of astrophysical plasmas based on the CHIANTI atomic database + pkgver = 0.7.dev + pkgrel = 1 + url = https://github.com/chianti-atomic/ChiantiPy + arch = i686 + arch = x86_64 + license = ISC + makedepends = git + depends = python + depends = python-numpy + depends = python-scipy + depends = python-matplotlib + depends = ipython-ipyparallel + optdepends = ipython: interactive terminal + optdepends = python-pyqt4: GUI + optdepends = wxpython: GUI alternative + provides = chiantipy + conflicts = chiantipy + options = !emptydirs + source = git+https://github.com/chianti-atomic/ChiantiPy.git + md5sums = SKIP + +pkgname = chiantipy-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7ed5425360a8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Gabriel "ArcturusB" Perouze" <arcturus@openmailbox.org> + +pkgname=chiantipy-git +_gitname=ChiantiPy +pkgver=0.7.dev +pkgrel=1 +pkgdesc="A python package to calculate the radiative properties of astrophysical plasmas based on the CHIANTI atomic database" +arch=('i686' 'x86_64') +url="https://github.com/chianti-atomic/ChiantiPy" +license=('ISC') +depends=('python' + 'python-numpy' + 'python-scipy' + 'python-matplotlib' + 'ipython-ipyparallel') +optdepends=('ipython: interactive terminal' + 'python-pyqt4: GUI' + 'wxpython: GUI alternative') +makedepends=('git') +provides=(chiantipy) +conflicts=(chiantipy) +options=(!emptydirs) +install= +source=(git+https://github.com/chianti-atomic/ChiantiPy.git) +md5sums=('SKIP') + +pkgver() { + cd "${_gitname}" + printf "%s%s" "$(grep "VERSION = " setup.py | cut -d\' -f2)" "$(git rev-list --count HEAD)" +} + +package() { + cd "${_gitname}" + git submodule update --init + python setup.py install --root="${pkgdir}" +} + +post_install() { + echo "In order to use ChiantiPy, download the CHIANTI database:" + echo " http://www.chiantidatabase.org/chianti_download.html" + echo "Assuming you've placed the CHIANTI tree in $HOME, set the environment" + echo "variable in your .bashrc file:" + echo " export XUVTOP=$HOME/chianti/dbase" +} + +# vim:set ts=2 sw=2 et: |