[arch-commits] Commit in python-spyder-kernels/trunk (PKGBUILD)
Fabio Castelli
muflone at archlinux.org
Sat Oct 12 18:10:43 UTC 2019
Date: Saturday, October 12, 2019 @ 18:10:43
Author: muflone
Revision: 515260
upgpkg: python-spyder-kernels 0.5.2-1
Modified:
python-spyder-kernels/trunk/PKGBUILD
----------+
PKGBUILD | 37 +++++++++----------------------------
1 file changed, 9 insertions(+), 28 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-12 18:00:53 UTC (rev 515259)
+++ PKGBUILD 2019-10-12 18:10:43 UTC (rev 515260)
@@ -1,46 +1,27 @@
# Maintainer: Muflone http://www.muflone.com/contacts/english/
-pkgbase='python-spyder-kernels'
-_pkgbase='spyder-kernels'
-pkgname=('python-spyder-kernels' 'python2-spyder-kernels')
-pkgver=0.4.4
+pkgname=python-spyder-kernels
+_pkgname='spyder-kernels'
+pkgver=0.5.2
pkgrel=1
pkgdesc='Jupyter Kernels for the Spyder console'
-makedepends=('python' 'python-setuptools'
- 'python2' 'python2-setuptools')
+makedepends=('python' 'python-setuptools')
+depends=('python-ipykernel' 'python-cloudpickle')
arch=('any')
url="https://github.com/spyder-ide/${_pkgbase}/"
license=('MIT')
-source=("${pkgbase}-${pkgver}.tar.gz"::"https://github.com/spyder-ide/${_pkgbase}/archive/v${pkgver}.tar.gz")
-sha256sums=('5ec65634e5b999b71a8542df30fa6e609b21637c1e6cc0867954105a8e667e98')
+source=("python-${_pkgname}-${pkgver}.tar.gz"::"https://github.com/spyder-ide/${_pkgname}/archive/v${pkgver}.tar.gz")
+sha256sums=('861b7547ef407e1a02f315a9f54fe55fe21b516e6d40b7be0df524a85baf664e')
-prepare() {
- # Prepare sources for Python 2.x
- cp -r "${srcdir}/${_pkgbase}-${pkgver}" "${srcdir}/python2-${_pkgbase}-${pkgver}"
-}
-
build() {
- cd "${srcdir}/${_pkgbase}-${pkgver}"
- python2 setup.py build
-
- cd "${srcdir}/python2-${_pkgbase}-${pkgver}"
+ cd "${_pkgname}-${pkgver}"
python setup.py build
}
package_python-spyder-kernels() {
- depends=('python-ipykernel' 'python-cloudpickle')
-
- cd "${_pkgbase}-${pkgver}"
+ cd "${_pkgname}-${pkgver}"
python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
# Install license file
install -D -m 644 "LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
-package_python2-spyder-kernels() {
- depends=('python2-ipykernel' 'python2-cloudpickle')
- cd "${pkgname}-${pkgver}"
- python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
- # Install license file
- install -D -m 644 "LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}
-
More information about the arch-commits
mailing list