[arch-commits] Commit in python-jupyter_core/repos (2 files)
Kyle Keen
kkeen at archlinux.org
Mon Oct 10 16:41:02 UTC 2016
Date: Monday, October 10, 2016 @ 16:41:02
Author: kkeen
Revision: 191885
archrelease: copy trunk to community-any
Added:
python-jupyter_core/repos/community-any/
python-jupyter_core/repos/community-any/PKGBUILD
(from rev 191884, python-jupyter_core/trunk/PKGBUILD)
----------+
PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
Copied: python-jupyter_core/repos/community-any/PKGBUILD (from rev 191884, python-jupyter_core/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2016-10-10 16:41:02 UTC (rev 191885)
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+
+pkgbase=python-jupyter_core
+pkgname=(python-jupyter_core python2-jupyter_core)
+pkgver=4.2.0
+pkgrel=1
+pkgdesc="Jupyter core package. A base package on which Jupyter projects rely."
+arch=('any')
+url="https://pypi.python.org/pypi/jupyter_core"
+license=('BSD')
+depends=('python-traitlets')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://github.com/jupyter/jupyter_core/archive/$pkgver.tar.gz")
+md5sums=('25c1fc68b1b73c0a2e616c76f02bf061')
+
+prepare() {
+ cd "$srcdir"
+ cp -r jupyter_core-$pkgver python2-jupyter_core-$pkgver
+
+ cd python2-jupyter_core-$pkgver
+ sed -i 's/env python$/&2/' jupyter_core/troubleshoot.py
+}
+
+build() {
+ cd "$srcdir"
+}
+
+package_python-jupyter_core() {
+ cd "$srcdir/jupyter_core-$pkgver"
+ python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
+ install -Dm644 COPYING.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-jupyter_core() {
+ # todo: figure out how to remove this, it probably shouldn't be used
+ depends=('python2-traitlets')
+
+ cd "$srcdir/python2-jupyter_core-$pkgver"
+ python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
+ install -Dm644 COPYING.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+ cd "$pkgdir/usr"
+ rm bin/jupyter
+ rm bin/jupyter-migrate
+ rmdir bin
+}
+
More information about the arch-commits
mailing list