summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiguel de Val-Borro2019-10-30 00:09:51 -0400
committerMiguel de Val-Borro2019-10-30 00:09:51 -0400
commit7806c15a906acd916f24197df5c79f995b27725b (patch)
tree5a72af33c07a1be1fd685c2f11041ceabc417eea
downloadaur-7806c15a906acd916f24197df5c79f995b27725b.tar.gz
Initial commit
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD53
2 files changed, 76 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e033e27b883
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = python-sbpy
+ pkgdesc = A Python package for small bodies research
+ pkgver = 0.2
+ pkgrel = 1
+ 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
+
+pkgname = python-sbpy-doc
+ pkgdesc = Documentation for Python sbpy module
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8c511d1d36d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,53 @@
+# Maintainer: Miguel de Val-Borro <miguel dot deval at gmail dot com>
+pkgbase=python-sbpy
+_pyname=${pkgbase#python-}
+pkgname=("python-${_pyname}" "python-${_pyname}-doc")
+pkgver=0.2
+pkgrel=1
+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')
+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() {
+ cd ${srcdir}/${_pyname}-${pkgver}
+
+ python setup.py test
+}
+
+package_python-sbpy() {
+ depends=('python' 'python-numpy' 'python-scipy' 'python-astropy>=1.0' )
+ optdepends=('python-sbpy-doc: Documentation for sbpy')
+ cd ${srcdir}/${_pyname}-${pkgver}
+
+ install -D -m644 LICENSE.rst -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -m644 -t "${pkgdir}/usr/share/licenses/${pkgname}" licenses/*
+ 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}"
+}