diff options
author | Universebenzene | 2019-02-14 01:43:21 +0800 |
---|---|---|
committer | Universebenzene | 2019-02-14 01:43:21 +0800 |
commit | 5edd7b4034b37751de6bb2f5b15098d4a94c1548 (patch) | |
tree | f50b8758a8ba9ca0af881910f14f97c7929e58be | |
download | aur-5edd7b4034b37751de6bb2f5b15098d4a94c1548.tar.gz |
Initial import 1.7.1
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 25 |
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e67f72ec1e59 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +# Generated by mksrcinfo v8 +# Wed Feb 13 17:40:30 UTC 2019 +pkgbase = python-sncosmo-doc + pkgdesc = Documentation for SNCosmo + pkgver = 1.7.1 + pkgrel = 1 + url = https://sncosmo.readthedocs.io/ + arch = i686 + arch = x86_64 + license = BSD + makedepends = python-sncosmo=1.7.1 + makedepends = python-numpydoc + makedepends = python-sphinx-gallery + makedepends = python-iminuit + source = https://files.pythonhosted.org/packages/source/s/sncosmo/sncosmo-1.7.1.tar.gz + md5sums = fdc70cb1f9c7d49397a7589829694162 + +pkgname = python-sncosmo-doc + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1df5787e3d2f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: Astro Benzene <universebenzene at sina dot com> +_pyname=sncosmo +pkgname=python-${_pyname}-doc +pkgver=1.7.1 +pkgrel=1 +pkgdesc="Documentation for SNCosmo" +arch=('i686' 'x86_64') +url="https://sncosmo.readthedocs.io/" +license=('BSD') +makedepends=("python-${_pyname}=${pkgver}" 'python-numpydoc' 'python-sphinx-gallery' 'python-iminuit') +source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz") +md5sums=('fdc70cb1f9c7d49397a7589829694162') + +build() { + cd ${srcdir}/${_pyname}-${pkgver}/docs + + make html +} + +package() { + cd ${srcdir}/${_pyname}-${pkgver}/docs/_build + + install -d -m755 "${pkgdir}/usr/share/doc/${pkgname%-doc}" + cp -a html "${pkgdir}/usr/share/doc/${pkgname%-doc}" +} |