[arch-commits] Commit in (4 files)

Fabio Castelli muflone at archlinux.org
Sat Aug 11 21:36:44 UTC 2018


    Date: Saturday, August 11, 2018 @ 21:36:44
  Author: muflone
Revision: 371184

newpkg python-spyder-kernels 0.2.6-1

Added:
  python-spyder-kernels/
  python-spyder-kernels/repos/
  python-spyder-kernels/trunk/
  python-spyder-kernels/trunk/PKGBUILD

----------+
 PKGBUILD |   47 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)

Added: python-spyder-kernels/trunk/PKGBUILD
===================================================================
--- python-spyder-kernels/trunk/PKGBUILD	                        (rev 0)
+++ python-spyder-kernels/trunk/PKGBUILD	2018-08-11 21:36:44 UTC (rev 371184)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Muflone http://www.muflone.com/contacts/english/
+
+pkgbase='python-spyder-kernels'
+_pkgbase='spyder-kernels'
+pkgname=('python-spyder-kernels' 'python2-spyder-kernels')
+pkgver=0.2.6
+pkgrel=1
+pkgdesc='Jupyter Kernels for the Spyder console'
+makedepends=('python' 'python-setuptools'
+             'python2' 'python2-setuptools')
+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=('9b906f559288acb47cf4cbc0d67f5318706efae44d53ad53f8030e91420e62fc')
+
+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}"
+  python setup.py build
+}
+
+package_python-spyder-kernels() {
+  depends=('python-ipykernel' 'python-cloudpickle')
+
+  cd "${_pkgbase}-${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"
+}
+


Property changes on: python-spyder-kernels/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list