summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorUniversebenzene2019-08-30 00:35:59 +0800
committerUniversebenzene2019-08-30 00:35:59 +0800
commita8d7176cba3634be0205c6f49eae0c3cfa78ae27 (patch)
treefe91fc4cad3c038a03b1fb40e597fe90f5436c2c
downloadaur-a8d7176cba3634be0205c6f49eae0c3cfa78ae27.tar.gz
Initial import 2.2.2
-rw-r--r--.SRCINFO28
-rw-r--r--.gitignore8
-rw-r--r--PKGBUILD59
3 files changed, 95 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2d262808c1d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,28 @@
+pkgbase = python-stsci.convolve
+ pkgdesc = Image array convolution functions
+ pkgver = 2.2.2
+ pkgrel = 1
+ url = http://www.stsci.edu/institute/software_hardware/pyraf/stsci_python
+ arch = i686
+ arch = x86_64
+ license = BSD
+ checkdepends = python2-nose
+ makedepends = python-setuptools
+ makedepends = python2-setuptools
+ makedepends = python-numpy
+ makedepends = python2-numpy
+ makedepends = python-d2to1
+ makedepends = python2-d2to1
+ makedepends = python-stsci.distutils
+ makedepends = python2-stsci.distutils
+ source = https://files.pythonhosted.org/packages/source/s/stsci.convolve/stsci.convolve-2.2.2.tar.gz
+ source = https://github.com/spacetelescope/stsci.convolve/blob/master/LICENSE.txt
+ md5sums = fb0feba75f45d85f34d6e4599efcd3db
+ md5sums = 7ee1b1760f8eb2c2b2b1946060c73630
+
+pkgname = python-stsci.convolve
+ depends = python-numpy
+
+pkgname = python2-stsci.convolve
+ depends = python2-numpy
+
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..d707f9e10bd
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,59 @@
+# Maintainer: Astro Benzene <universebenzene at sina dot com>
+pkgbase=python-stsci.convolve
+_pyname=${pkgbase#python-}
+pkgname=("python-${_pyname}" "python2-${_pyname}")
+pkgver=2.2.2
+pkgrel=1
+pkgdesc="Image array convolution functions"
+arch=('i686' 'x86_64')
+url="http://www.stsci.edu/institute/software_hardware/pyraf/stsci_python"
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-numpy' 'python2-numpy' 'python-d2to1' 'python2-d2to1' 'python-stsci.distutils' 'python2-stsci.distutils')
+checkdepends=('python2-nose')
+# 'python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz"
+ "https://github.com/spacetelescope/stsci.convolve/blob/master/LICENSE.txt")
+md5sums=('fb0feba75f45d85f34d6e4599efcd3db'
+ '7ee1b1760f8eb2c2b2b1946060c73630')
+_pyver=$(python -V | cut -c 8-10)
+
+prepare() {
+ cp -a ${srcdir}/${_pyname}-${pkgver}{,-py2}
+}
+
+build() {
+ msg "Building Python2"
+ cd ${srcdir}/${_pyname}-${pkgver}-py2
+ python2 setup.py build
+
+ msg "Building Python3"
+ cd ${srcdir}/${_pyname}-${pkgver}
+ python setup.py build
+}
+
+check() {
+# msg "Checking Python3"
+# cd ${srcdir}/${_pyname}-${pkgver}
+# python setup.py test
+# pytest
+
+# msg "Checking Python2"
+ cd ${srcdir}/${_pyname}-${pkgver}-py2
+ python2 setup.py test
+}
+
+package_python2-stsci.convolve() {
+ depends=('python2-numpy')
+ cd ${srcdir}/${_pyname}-${pkgver}
+
+ install -D -m644 -t "${pkgdir}/usr/share/licenses/${pkgname}" "${srcdir}/LICENSE.txt"
+ python2 setup.py install --root=${pkgdir} --prefix=/usr --optimize=1
+}
+
+package_python-stsci.convolve() {
+ depends=('python-numpy')
+ cd ${srcdir}/${_pyname}-${pkgver}
+
+ install -D -m644 -t "${pkgdir}/usr/share/licenses/${pkgname}" "${srcdir}/LICENSE.txt"
+ python setup.py install --root=${pkgdir} --prefix=/usr --optimize=1
+}