[arch-commits] Commit in python-qtconsole/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Dec 27 13:03:20 UTC 2016


    Date: Tuesday, December 27, 2016 @ 13:03:20
  Author: felixonmars
Revision: 203054

archrelease: copy trunk to community-staging-any

Added:
  python-qtconsole/repos/community-staging-any/
  python-qtconsole/repos/community-staging-any/PKGBUILD
    (from rev 203053, python-qtconsole/trunk/PKGBUILD)

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

Copied: python-qtconsole/repos/community-staging-any/PKGBUILD (from rev 203053, python-qtconsole/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-27 13:03:20 UTC (rev 203054)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+
+pkgbase=python-qtconsole
+pkgname=(python-qtconsole python2-qtconsole)
+pkgver=4.2.1
+pkgrel=2
+pkgdesc="Qt-based console for Jupyter with support for rich media output"
+arch=('any')
+url="https://pypi.python.org/pypi/qtconsole"
+license=('BSD')
+depends=('python-ipykernel' 'python-jupyter_core' 'python-jupyter_client'
+         'python-traitlets' 'python-pygments' 'python-pyzmq'
+         'qt5-svg' 'python-pyqt5' 'python-sip')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("$pkgbase-$pkgver.tgz::https://github.com/jupyter/qtconsole/archive/$pkgver.tar.gz")
+md5sums=('97a3e29cd69bc0270411b313c907c173')
+
+prepare() {
+  cd "$srcdir"
+  cp -r qtconsole-$pkgver python2-qtconsole-$pkgver
+}
+
+build() {
+  cd "$srcdir"
+}
+
+package_python-qtconsole() {
+  cd "$srcdir/qtconsole-$pkgver"
+  python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
+  install -Dm644 COPYING.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+  cd examples
+  # FS#47046 fix .desktop icon
+  sed -i 's|^Icon=.*$|Icon=/usr/lib/python3.5/site-packages/qtconsole/resources/icon/JupyterConsole.svg|' \
+    jupyter-qtconsole.desktop
+  install -Dm644 jupyter-qtconsole.desktop \
+    "$pkgdir/usr/share/applications/jupyter-qtconsole.desktop"
+
+}
+
+package_python2-qtconsole() {
+  depends=('python2-ipykernel' 'python2-jupyter_core' 'python2-jupyter_client'
+           'python2-traitlets' 'python2-pygments' 'python2-pyzmq'
+           'qt5-svg' 'python2-pyqt5' 'python2-sip')
+
+  cd "$srcdir/python2-qtconsole-$pkgver"
+  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
+  install -Dm644 COPYING.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+  cd "$pkgdir/usr/bin"
+  mv jupyter-qtconsole jupyter-qtconsole-py2
+}
+



More information about the arch-commits mailing list