updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / python-vo / PKGBUILD
blob5f7d7a0532ceeb32940c2da32d10d4b9d75ff6b0
1 # Maintainer:  <clu>
3 pkgbase=python-vo
4 pkgname=('python-vo')
5 true && pkgname=('python2-vo' 'python3-vo')
6 _pkgname=vo
7 pkgver=0.7.2
8 pkgrel=1
9 pkgdesc="A library to parse, validate and generate VOTABLE XML files."
10 url="https://trac6.assembla.com/astrolib"
11 arch=('i686' 'x86_64')
12 license=('BSD')
13 #depends=('python2' 'python2-numpy' 'python-pyfits')
14 makedepends=('python' 'python2>=2.6' 'python-distribute' 'python2-distribute')
15 #conflicts=()
16 #replaces=()
17 #backup=()
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)
22 build() {
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
41   python setup.py build
42   python setup.py install --root=$pkgdir --prefix=/usr --optimize=1