summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD25
1 files changed, 13 insertions, 12 deletions
diff --git a/PKGBUILD b/PKGBUILD
index d4729077c14..47437bf6606 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,31 +1,32 @@
# Maintainer: Astro Benzene <universebenzene at sina dot com>
-pkgname=python-astropy-doc
-pkgver=3.1.1
+_pyname=astropy
+pkgname=python-${_pyname}-doc
+pkgver=3.1.2
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')
+makedepends=("python-${_pyname}=${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/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
+md5sums=('2e197984c6ab44672b807bc25ce4b03f')
prepare() {
- cd ${srcdir}/astropy-${pkgver}
+ cd ${srcdir}/${_pyname}-${pkgver}
sed -i -e '/auto_use/s/True/False/' setup.cfg
}
build() {
- cd ${srcdir}/astropy-${pkgver}/docs
+ cd ${srcdir}/${_pyname}-${pkgver}/docs
make html
}
package() {
- cd ${srcdir}/astropy-${pkgver}/docs/_build
+ cd ${srcdir}/${_pyname}-${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/*
+ install -d -m755 "${pkgdir}/usr/share/doc/${pkgname%-doc}"
+ cp -a html "${pkgdir}/usr/share/doc/${pkgname%-doc}"
+ install -m644 -t "${pkgdir}/usr/share/doc/${pkgname%-doc}/html/_static" ../_static/*
+ install -m644 -t "${pkgdir}/usr/share/doc/${pkgname%-doc}/html/_images" ../_static/*
}