updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / python-chiantipy / PKGBUILD
blob77137fb818444d69f8e3de301c745e982eda7ccf
1 # Maintainer:  <clu>
3 pkgname=python-chiantipy  
4 pkgver=0.3.0
5 pkgrel=1 
6 pkgdesc="The Python interface to the CHIANTI atomic database for astrophysical spectroscopy"
7 url="http://chiantipy.sourceforge.net/index.html"
8 arch=('any')
9 license=('GPL3')
10 depends=('python2' 'python-numpy>=1.3.0' 'python-scipy>=0.7.1' 'python-matplotlib' 'chianti')
11 makedepends=('python2' 'python2-distribute')
12 optdepends=('pyqt: chiantipy gui' 'wxpython: chiantipy gui')
13 conflicts=()
14 replaces=()
15 backup=()
16 source=(http://sourceforge.net/projects/chiantipy/files/ChiantiPy-${pkgver}.tar.gz
17   'chianti.profile'
18   'chianti.profile.csh')
19 md5sums=('46bfb67320005c1cdea43d802b149766'
20          '19bcf9d69dba7d58c2d140b864a10a48'
21          'd996680e598ce015a0d40db375595208')
23 build() {
24   #profiles for XUVTOP setting...
25   #database is assumed to be in /opt/chianti (as packaged in AUR)
26   #Edit these files if you place the chianti database elsewhere.
27   install -D ${srcdir}/chianti.profile $pkgdir/etc/profile.d/chianti.sh
28   install -D ${srcdir}/chianti.profile.csh $pkgdir/etc/profile.d/chianti.csh
30   cd $srcdir/ChiantiPy-$pkgver
31   python2 setup.py install --root=$pkgdir/ --optimize=1 || return 1