diff options
author | Universebenzene | 2019-04-10 22:27:21 +0800 |
---|---|---|
committer | Universebenzene | 2019-04-10 22:27:21 +0800 |
commit | 2951177300af585e666374aafb97ee0c7f7fd22b (patch) | |
tree | 737786b4dbb60c2410ea9aa6a1ae0fe5c01bbfd2 | |
download | aur-2951177300af585e666374aafb97ee0c7f7fd22b.tar.gz |
Initial import 0.14.2
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | PKGBUILD | 43 |
2 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4cc42acb84a6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,25 @@ +# Generated by mksrcinfo v8 +# Wed Apr 10 14:26:49 UTC 2019 +pkgbase = python2-scikit-image + pkgdesc = Image processing routines for SciPy + pkgver = 0.14.2 + pkgrel = 1 + url = http://scikit-image.org/ + arch = i686 + arch = x86_64 + license = BSD + makedepends = cython2 + makedepends = python2-six + depends = python2-scipy + depends = python2-matplotlib + depends = python2-networkx + depends = python2-pillow + depends = python2-pywavelets + optdepends = python2-pyqt4: for imshow(x, fancy=True) and skivi + optdepends = freeimage: for reading various types of image file formats + options = !emptydirs + source = https://files.pythonhosted.org/packages/source/s/scikit-image/scikit-image-0.14.2.tar.gz + sha256sums = 1afd0b84eefd77afd1071c5c1c402553d67be2d7db8950b32d6f773f25850c1f + +pkgname = python2-scikit-image + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d03171328a57 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Astro Benzene <universebenzene at sina dot com> +# Contributor: Jaroslav Lichtblau <dragonlord at aur dot archlinux dot org> +# Contributor: Andrzej Giniewicz <gginiu at gmail dot com> + +pkgbase=python2-scikit-image +_pyname=${pkgbase#python2-} +pkgname=("python2-${_pyname}") +pkgver=0.14.2 +pkgrel=1 +pkgdesc="Image processing routines for SciPy" +arch=('i686' 'x86_64') +url="http://scikit-image.org/" +license=('BSD') +makedepends=('cython2' 'python2-six') +depends=('python2-scipy' 'python2-matplotlib' 'python2-networkx' 'python2-pillow' 'python2-pywavelets') +optdepends=('python2-pyqt4: for imshow(x, fancy=True) and skivi' + 'freeimage: for reading various types of image file formats') +options=('!emptydirs') +source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz") +sha256sums=('1afd0b84eefd77afd1071c5c1c402553d67be2d7db8950b32d6f773f25850c1f') + +prepare() { + cd ${srcdir}/${_pyname}-${pkgver} + + sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \ + -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \ + -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \ + -i $(find . -name '*.py') +} + +build() { + cd ${srcdir}/${_pyname}-${pkgver} + + python2 setup.py build +} + +package() { + cd ${srcdir}/${_pyname}-${pkgver} + + install -D -m644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}" + python2 setup.py install --root=${pkgdir} --prefix=/usr --optimize=1 + mv ${pkgdir}/usr/bin/skivi{,2} +} |