updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / ipython-unstable / PKGBUILD
blob36c7b1611bbf9e49a9c8ef99b49a22c074af456d
1 # Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
2 # based on community version of stable ipython package
4 pkgname=ipython-unstable
5 pkgver=0.11.rc4
6 pkgrel=1
7 _githubtag=a4e73d9
8 pkgdesc="An enhanced Interactive Python shell, unstable version."
9 url="http://ipython.scipy.org/"
10 provides=("ipython=$pkgver" "ipython-docs=$pkgver")
11 conflicts=('ipython' 'ipython-docs')
12 arch=('any')
13 depends=('python2>=2.6')
14 optdepends=("python-pexpect: for irunner"
15             "python2-nose: if you want to run IPython's test suite"
16             "python2-pyzmq: for parallel computing"
17             "python2-pyqt: for qtconsole GUI"
18             "pyside: alternative to PyQt for qtconsole GUI"
19             "python2-pygments: for syntax highlighting in qtconsole"
21 license=('custom')
22 source=("https://github.com/ipython/ipython/tarball/rel-$pkgver")
23 md5sums=('c5881caecc873e569fd0d9a442336d0d')
25 build() {
26   true
29 package() {
30   cd "$srcdir/ipython-ipython-$_githubtag"
32   install -Dm644 docs/source/about/license_and_copyright.txt "$pkgdir/usr/share/licenses/ipython/license.txt"
33   python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
34   rm -rf "$pkgdir/usr/share/doc"
35   find "$pkgdir" -name '*.py' -print0 |xargs -0 \
36     sed -i -e 's,^#!/usr/bin/env python$,#!/usr/bin/env python2,' \
37     -e 's,^#!/usr/bin/python$,#!/usr/bin/python2,'