summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiguel de Val-Borro2019-11-03 11:42:47 -0500
committerMiguel de Val-Borro2019-11-03 11:42:47 -0500
commit2a738ce4213d7353935eb958bd75512cea9eb531 (patch)
tree58cdd9f9a38d4565a4d5a459542d3068f23f727d
parent7806c15a906acd916f24197df5c79f995b27725b (diff)
downloadaur-python-sbpy.tar.gz
Split sbpy-doc package in different PKGBUILD
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD27
2 files changed, 16 insertions, 30 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e033e27b883..ffc9b285061 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,23 +1,22 @@
pkgbase = python-sbpy
pkgdesc = A Python package for small bodies research
pkgver = 0.2
- pkgrel = 1
+ pkgrel = 2
url = http://sbpy.readthedocs.io/
arch = i686
arch = x86_64
license = BSD
makedepends = python-astropy-helpers
- makedepends = python-sphinx-astropy
- source = https://files.pythonhosted.org/packages/source/s/sbpy/sbpy-0.2.tar.gz
- md5sums = 6421c7c58dc473974d1aaf11441a6032
-
-pkgname = python-sbpy
depends = python
depends = python-numpy
- depends = python-scipy
depends = python-astropy>=1.0
- optdepends = python-sbpy-doc: Documentation for sbpy
+ optdepends = python-scipy
+ optdepends = python-matplotlib
+ optdepends = python-astroquery
+ optdepends = python-pysynphot
+ optdepends = python-sbpy-doc
+ source = https://files.pythonhosted.org/packages/source/s/sbpy/sbpy-0.2.tar.gz
+ md5sums = 6421c7c58dc473974d1aaf11441a6032
-pkgname = python-sbpy-doc
- pkgdesc = Documentation for Python sbpy module
+pkgname = python-sbpy
diff --git a/PKGBUILD b/PKGBUILD
index 8c511d1d36d..d2e55142738 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,30 +1,27 @@
# Maintainer: Miguel de Val-Borro <miguel dot deval at gmail dot com>
-pkgbase=python-sbpy
-_pyname=${pkgbase#python-}
-pkgname=("python-${_pyname}" "python-${_pyname}-doc")
+pkgname=python-sbpy
+_pyname=${pkgname#python-}
pkgver=0.2
-pkgrel=1
+pkgrel=2
pkgdesc="A Python package for small bodies research"
arch=('i686' 'x86_64')
url="http://sbpy.readthedocs.io/"
license=('BSD')
-makedepends=('python-astropy-helpers' 'python-sphinx-astropy')
+makedepends=('python-astropy-helpers')
+depends=('python' 'python-numpy' 'python-astropy>=1.0')
+optdepends=('python-scipy' 'python-matplotlib' 'python-astroquery' 'python-pysynphot' 'python-sbpy-doc')
source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
md5sums=('6421c7c58dc473974d1aaf11441a6032')
prepare() {
cd ${srcdir}/${_pyname}-${pkgver}
-# sed -i -e '/[pytest]/s/pytest/tool:pytest/' setup.cfg
sed -i -e '/auto_use/s/True/False/' setup.cfg
}
build() {
cd ${srcdir}/${_pyname}-${pkgver}
python setup.py build --use-system-libraries --offline
-
- msg "Building Docs"
- python setup.py build_docs
}
check() {
@@ -33,9 +30,7 @@ check() {
python setup.py test
}
-package_python-sbpy() {
- depends=('python' 'python-numpy' 'python-scipy' 'python-astropy>=1.0' )
- optdepends=('python-sbpy-doc: Documentation for sbpy')
+package() {
cd ${srcdir}/${_pyname}-${pkgver}
install -D -m644 LICENSE.rst -t "${pkgdir}/usr/share/licenses/${pkgname}"
@@ -43,11 +38,3 @@ package_python-sbpy() {
install -D -m644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
python setup.py install --root=${pkgdir} --prefix=/usr --optimize=1 --use-system-libraries --offline
}
-
-package_python-sbpy-doc() {
- pkgdesc="Documentation for Python sbpy module"
- cd ${srcdir}/${_pyname}-${pkgver}/docs/_build
-
- install -d -m755 "${pkgdir}/usr/share/doc/${pkgbase}"
- cp -a html "${pkgdir}/usr/share/doc/${pkgbase}"
-}