diff options
author | Universebenzene | 2019-08-29 19:10:11 +0800 |
---|---|---|
committer | Universebenzene | 2019-08-29 19:10:11 +0800 |
commit | d31ce9c1286570e281c55957bd29a2ce70ab57e6 (patch) | |
tree | cdc61517d82d5c3a30e5666e58a5ccd5de19addb /PKGBUILD | |
download | aur-d31ce9c1286570e281c55957bd29a2ce70ab57e6.tar.gz |
Initial import 1.0.4
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5b7b9fcd0bae --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: Astro Benzene <universebenzene at sina dot com> +pkgbase=python-stsci.skypac +_pyname=${pkgbase#python-} +pkgname=("python-${_pyname}" "python-${_pyname}-doc") +pkgver=1.0.4 +pkgrel=1 +pkgdesc="Sky matching for image mosaic" +arch=('i686' 'x86_64') +url="https://stsci-skypac.readthedocs.io/" +license=('BSD') +makedepends=('python-setuptools' 'python-relic' 'python-spherical_geometry' 'python-stsci.tools' 'python-stwcs' 'python-stsci.imagestats' 'python-numpydoc' 'python-sphinx_rtd_theme' 'python-stsci_rtd_theme') +#checkdepends=('python-pytest') +source=("https://github.com/spacetelescope/stsci.skypac/archive/${pkgver}.tar.gz") +md5sums=('ef209b3328e4009d59fbcd766e2ef540') +_pyver=$(python -V | cut -c 8-10) + +build() { + cd ${srcdir}/${_pyname}-${pkgver} + python setup.py build + + msg "Building Docs" + python setup.py build_sphinx +} + +#check() { +# cd ${srcdir}/${_pyname}-${pkgver} +# +# python setup.py test +#} + +package_python-stsci.skypac() { + depends=('python>=3.5' 'python-astropy>=3.1' 'python-spherical_geometry' 'python-stwcs' 'python-stsci.imagestats') + optdepends=('python-stsci.skypac-doc: Documentation for STScI skypac') + cd ${srcdir}/${_pyname}-${pkgver} + + install -D -m644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE.txt + install -D -m644 -t "${pkgdir}/usr/share/doc/${pkgname}" README.md + python setup.py install --root=${pkgdir} --prefix=/usr --optimize=1 + rm "${pkgdir}/usr/lib/python${_pyver}/site-packages/stsci/__init__.py" + rm "${pkgdir}/usr/lib/python${_pyver}/site-packages/stsci/__pycache__"/* +} + +package_python-stsci.skypac-doc() { + pkgdesc="Documentation for STScI skypac" + cd ${srcdir}/${_pyname}-${pkgver}/build/sphinx + + install -d -m755 "${pkgdir}/usr/share/doc/${pkgbase}" + cp -a html "${pkgdir}/usr/share/doc/${pkgbase}" +} |