summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d4729077c14554f7e34ecc8f0c8118accd25a578 (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
# Maintainer: Astro Benzene <universebenzene at sina dot com>
pkgname=python-astropy-doc
pkgver=3.1.1
pkgrel=1
pkgdesc="Documentation for AstroPy"
arch=('i686' 'x86_64')
url="http://www.astropy.org"
license=('BSD')
makedepends=("python-astropy=${pkgver}" 'python-yaml' 'python-pillow' 'python-astropy-helpers>=3.1' 'graphviz' 'python-scikit-image' 'python-pytest' 'python-sphinx-astropy')
source=("https://files.pythonhosted.org/packages/source/a/astropy/astropy-${pkgver}.tar.gz")
md5sums=('be7267b5b15face74626876fc2901119')

prepare() {
    cd ${srcdir}/astropy-${pkgver}
    sed -i -e '/auto_use/s/True/False/' setup.cfg
}

build() {
    cd ${srcdir}/astropy-${pkgver}/docs

    make html
}

package() {
    cd ${srcdir}/astropy-${pkgver}/docs/_build

    install -d -m755 "${pkgdir}/usr/share/doc/python-astropy"
    cp -a html "${pkgdir}/usr/share/doc/python-astropy"
    install -m644 -t "${pkgdir}/usr/share/doc/python-astropy/html/_static" ../_static/*
    install -m644 -t "${pkgdir}/usr/share/doc/python-astropy/html/_images" ../_static/*
}