Date: Saturday, August 11, 2018 @ 21:40:32
  Author: muflone
Revision: 371185

archrelease: copy trunk to community-testing-any

Added:
  python-spyder-kernels/repos/community-testing-any/
  python-spyder-kernels/repos/community-testing-any/PKGBUILD
    (from rev 371184, python-spyder-kernels/trunk/PKGBUILD)

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

Copied: python-spyder-kernels/repos/community-testing-any/PKGBUILD (from rev 
371184, python-spyder-kernels/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD                              (rev 0)
+++ community-testing-any/PKGBUILD      2018-08-11 21:40:32 UTC (rev 371185)
@@ -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"
+}
+

Reply via email to