summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2ef87db38b384baaefb43a8162ef75bde4fc7864 (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
# Maintainer: Astro Benzene <universebenzene at sina dot com>
_pyname=drizzlepac
pkgname=python-${_pyname}-doc
pkgver=3.1.8
pkgrel=1
pkgdesc="Documentation for DrizzlePac"
arch=('i686' 'x86_64')
url="http://www.stsci.edu/scientific-community/software/drizzlepac.html"
license=('BSD')
makedepends=("python-${_pyname}=${pkgver}" 'graphviz' 'python-numpydoc' 'python-sphinx_rtd_theme' 'python-stsci_rtd_theme' 'python-sphinx-automodapi' 'python-ci_watson' 'texlive-latexextra')
source=("https://github.com/spacetelescope/${_pyname}/archive/${pkgver}.tar.gz")
#source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz"
#        "https://raw.githubusercontent.com/spacetelescope/drizzlepac/master/LICENSE.txt"
#        "https://raw.githubusercontent.com/spacetelescope/drizzlepac/master/CHANGELOG.rst")
md5sums=('ed54c8f0e3d2bb3bf16a5dbd83369951')

prepare() {
    cd ${srcdir}/${_pyname}-${pkgver}

    mv ${_pyname} _${_pyname}
#   ln -rs ${srcdir}/{LICENSE.txt,CHANGELOG.rst} .
}

build() {
    cd ${srcdir}/${_pyname}-${pkgver}/doc

    make html
}

package() {
    cd ${srcdir}/${_pyname}-${pkgver}/doc/build

    install -D -m644 -t "${pkgdir}/usr/share/licenses/${pkgname}" ../../LICENSE.txt
    install -d -m755 "${pkgdir}/usr/share/doc/${pkgname%-doc}"
    cp -a html "${pkgdir}/usr/share/doc/${pkgname%-doc}"
}