summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD7
-rw-r--r--fix_doc_index_astropy_link.patch12
3 files changed, 19 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7c21573654f..5df237b24e0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -16,7 +16,9 @@ pkgbase = python-astroplan
makedepends = python-astroquery
makedepends = graphviz
source = https://files.pythonhosted.org/packages/source/a/astroplan/astroplan-0.6.tar.gz
+ source = fix_doc_index_astropy_link.patch
md5sums = a113c9a7f3107a433e3c4bf22e238259
+ md5sums = be56be5926b43589b273c16544c5241a
pkgname = python-astroplan
depends = python>=3.5
diff --git a/PKGBUILD b/PKGBUILD
index b5e2696d286..feacd8e9804 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,13 +16,16 @@ makedepends=('python-setuptools'
'python-astroquery'
'graphviz')
checkdepends=('python-pytest-astropy' 'python-pytest-mpl')
-source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
-md5sums=('a113c9a7f3107a433e3c4bf22e238259')
+source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz"
+ 'fix_doc_index_astropy_link.patch')
+md5sums=('a113c9a7f3107a433e3c4bf22e238259'
+ 'be56be5926b43589b273c16544c5241a')
prepare() {
cd ${srcdir}/${_pyname}-${pkgver}
sed -i -e '/auto_use/s/True/False/' setup.cfg
+ patch -Np1 -i "${srcdir}/fix_doc_index_astropy_link.patch"
}
build() {
diff --git a/fix_doc_index_astropy_link.patch b/fix_doc_index_astropy_link.patch
new file mode 100644
index 00000000000..2768c9441e1
--- /dev/null
+++ b/fix_doc_index_astropy_link.patch
@@ -0,0 +1,12 @@
+diff -ura a/docs/index.rst b/docs/index.rst
+--- a/docs/index.rst 2017-10-24 00:54:21.000000000 +0800
++++ b/docs/index.rst 2019-12-09 00:58:09.911329672 +0800
+@@ -26,7 +26,7 @@
+ plots (airmass, parallactic angle, sky maps).
+ * Determining observability of sets of targets given an arbitrary set of
+ constraints (i.e., altitude, airmass, moon separation/illumination, etc.).
+-* `Astropy`_ powered!
++* `Astropy <astropy.org>`_ powered!
+
+ Links
+ =====