5 true && pkgname=('python2-vo' 'python3-vo')
9 pkgdesc="A library to parse, validate and generate VOTABLE XML files."
10 url="https://trac6.assembla.com/astrolib"
11 arch=('i686' 'x86_64')
13 #depends=('python2' 'python2-numpy' 'python-pyfits')
14 makedepends=('python' 'python2>=2.6' 'python-distribute' 'python2-distribute')
18 source=(http://stsdas.stsci.edu/astrolib/vo-${pkgver}.tar.gz)
19 md5sums=('f961f2e67579e12d6e8e6690ddac3587')
20 #source=(http://stsdas.stsci.edu/astrolib/vo-${pkgver}.tar.gz)
23 cd $srcdir/$_pkgname-$pkgver
26 package_python2-vo() {
27 depends=('python2>=2.6' 'python2-numpy>=1.0' 'python2-pyfits>=2.2')
28 provides=("python-vo=${pkgver}")
29 replaces=('python-vo')
30 conflicts=('python-vo')
32 cd $srcdir/$_pkgname-$pkgver
33 python2 setup.py build
34 python2 setup.py install --root=$pkgdir --prefix=/usr --optimize=1
37 package_python3-vo() {
38 depends=('python' 'python-numpy>=1.0' 'python-pyfits>=2.2')
40 cd $srcdir/$_pkgname-$pkgver
42 python setup.py install --root=$pkgdir --prefix=/usr --optimize=1