summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 703e3bf2388a3e1a0d3f6862c298e20ef8805384 (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
# Maintainer: Astro Benzene <universebenzene at sina dot com>
pkgname=python-galpy-doc
pkgver=1.9.2
pkgrel=1
pkgdesc="Documentation for galpy"
arch=('any')
url="https://www.galpy.org"
license=('BSD-3-Clause')
makedepends=("python-galpy=${pkgver}"
             'python-sphinxext-opengraph'
             'python-sphinx_design'
             'gsl')
#            'ttf-roboto'
source=("https://github.com/jobovy/galpy/archive/v${pkgver}.tar.gz"
        'fix-underline-length.patch')
md5sums=('ab372b0c09d9f54292bffd233ae6ffd8'
         '6eed08a4280a7d2ec91a04b479414c65')

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

    patch -Np1 -i "${srcdir}/fix-underline-length.patch"
}

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

    make html
}

package() {
    cd ${srcdir}/galpy-docs

    install -D -m644 -t "${pkgdir}/usr/share/licenses/${pkgname}" ../galpy-${pkgver}/LICENSE
    install -d -m755 "${pkgdir}/usr/share/doc/python-galpy/html"
    cp -a * "${pkgdir}/usr/share/doc/python-galpy/html"
}