summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorUniversebenzene2019-08-29 19:57:33 +0800
committerUniversebenzene2019-08-29 19:57:33 +0800
commit8471566dc518f446604fd537aa7295ee8bd8815b (patch)
treee0ab530ea5818bc1c7bc449bae0c1e51b00a9c93
downloadaur-8471566dc518f446604fd537aa7295ee8bd8815b.tar.gz
Initial import 3.0.0
-rw-r--r--.SRCINFO30
-rw-r--r--.gitignore8
-rw-r--r--PKGBUILD54
3 files changed, 92 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..54feca9fc6c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,30 @@
+pkgbase = python-acstools
+ pkgdesc = Python Tools for ACS (Advanced Camera for Surveys) Data
+ pkgver = 3.0.0
+ pkgrel = 1
+ url = https://acstools.readthedocs.io/
+ arch = i686
+ arch = x86_64
+ license = BSD
+ checkdepends = python-pytest
+ makedepends = python-setuptools
+ makedepends = python-relic
+ makedepends = python-astropy
+ makedepends = python-beautifulsoup4
+ makedepends = python-sphinx-automodapi
+ makedepends = python-sphinx_rtd_theme
+ makedepends = python-matplotlib
+ source = https://files.pythonhosted.org/packages/source/a/acstools/acstools-3.0.0.tar.gz
+ source = https://raw.githubusercontent.com/spacetelescope/acstools/master/LICENSE.md
+ md5sums = 8dee698a8ecb7d6f34b9104bc22a4caf
+ md5sums = eb7a4d353fae4eb8212e6f7ae374a5d2
+
+pkgname = python-acstools
+ depends = python>=3.5
+ depends = python-astropy>=2
+ depends = python-beautifulsoup4
+ optdepends = python-acstools-doc: Documentation for Python ACS Tools
+
+pkgname = python-acstools-doc
+ pkgdesc = Documentation for Python ACS Tools
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..ef6375f7561
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,8 @@
+src
+pkg
+*.src.tar.gz
+*.tar.gz
+*.tar.bz2
+*.part
+*.pkg.tar.xz
+LICENSE*
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b6b56af659b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,54 @@
+# Maintainer: Astro Benzene <universebenzene at sina dot com>
+pkgbase=python-acstools
+_pyname=${pkgbase#python-}
+pkgname=("python-${_pyname}" "python-${_pyname}-doc")
+pkgver=3.0.0
+pkgrel=1
+pkgdesc="Python Tools for ACS (Advanced Camera for Surveys) Data"
+arch=('i686' 'x86_64')
+url="https://acstools.readthedocs.io/"
+license=('BSD')
+makedepends=('python-setuptools' 'python-relic' 'python-astropy' 'python-beautifulsoup4' 'python-sphinx-automodapi' 'python-sphinx_rtd_theme' 'python-matplotlib')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz"
+ "https://raw.githubusercontent.com/spacetelescope/acstools/master/LICENSE.md")
+md5sums=('8dee698a8ecb7d6f34b9104bc22a4caf'
+ 'eb7a4d353fae4eb8212e6f7ae374a5d2')
+
+prepare() {
+ cd ${srcdir}/${_pyname}-${pkgver}
+
+ rm -r relic
+}
+
+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-acstools() {
+ depends=('python>=3.5' 'python-astropy>=2' 'python-beautifulsoup4')
+ optdepends=('python-acstools-doc: Documentation for Python ACS Tools')
+ cd ${srcdir}/${_pyname}-${pkgver}
+
+ install -D -m644 -t "${pkgdir}/usr/share/licenses/${pkgname}" "${srcdir}/LICENSE.md"
+ install -D -m644 -t "${pkgdir}/usr/share/doc/${pkgname}" README.rst
+ python setup.py install --root=${pkgdir} --prefix=/usr --optimize=1
+}
+
+package_python-acstools-doc() {
+ pkgdesc="Documentation for Python ACS Tools"
+ cd ${srcdir}/${_pyname}-${pkgver}/build/sphinx
+
+ install -d -m755 "${pkgdir}/usr/share/doc/${pkgbase}"
+ cp -a html "${pkgdir}/usr/share/doc/${pkgbase}"
+}