blob: 5e0811156cdfbcef91e41191d8fe03d02e53f572 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Maintainer: Astro Benzene <universebenzene at sina dot com>
pkgbase=python-regions
pkgname=('python-regions' 'python-regions-doc')
pkgver=0.3
pkgrel=1
pkgdesc="Astropy affilated package for region handling"
arch=('i686' 'x86_64')
url="http://astropy-regions.readthedocs.io/en/latest/"
license=('BSD')
makedepends=('cython' 'python-astropy>=1.2' 'python-astropy-helpers' 'python-sphinx' 'python-matplotlib' 'python-shapely')
checkdepends=('python-pytest-astropy' 'python-astropy-healpix')
source=("https://files.pythonhosted.org/packages/source/r/regions/regions-${pkgver}.tar.gz")
md5sums=('b2f0b08cdaa2b40519de665f9af2a25a')
prepare() {
cd ${srcdir}/regions-${pkgver}
sed -i -e '/auto_use/s/True/False/' setup.cfg
}
build () {
cd ${srcdir}/regions-${pkgver}
python setup.py build --use-system-libraries --offline
msg "Building Docs"
python setup.py build_docs
}
check(){
cd ${srcdir}/regions-${pkgver}
python setup.py test
}
package_python-regions() {
depends=('python>=3.4' 'python-numpy>=1.9' 'python-astropy>=1.2')
optdepends=('python-matplotlib>=1.5: Plotting support'
'python-shapely: Managing geometric objects'
'python-regions-doc: Documentation for AstroPy Regions')
cd ${srcdir}/regions-${pkgver}
python setup.py install --root=${pkgdir} --prefix=/usr --optimize=1 --use-system-libraries --offline
}
package_python-regions-doc() {
pkgdesc="Documentation for AstroPy Regions"
cd ${srcdir}/regions-${pkgver}/build/sphinx
install -d -m755 "${pkgdir}/usr/share/doc/${pkgbase}"
cp -a html "${pkgdir}/usr/share/doc/${pkgbase}"
}
|