summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b0447a68e9f1edbebc44df4fd99b98a06812393c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Maintainer: Dylan Delgado <dylan1496 at live dot com>

pkgname=ipython-git
pkgver=8.1.1.r17.g47ccec77b
pkgrel=1
pkgdesc="An enhanced Interactive Python shell - git version"
arch=('any')
url="https://ipython.org"
license=('BSD')
depends=('python' 'python-traitlets' 'python-pexpect' 'sqlite'
         'python-pickleshare' 'python-prompt_toolkit'
         'python-jedi' 'python-pygments' 'python-backcall'
	 'python-stack-data' 'python-executing' 'python-asttokens'
	 'python-pure-eval')
makedepends=('python-setuptools')
optdepends=("python-nose: for IPython's test suite")
conflicts=('ipython')
provides=('ipython')

# new optional thing: ipyparallel

source=("git+https://github.com/ipython/ipython.git"
        "ipython.png")
md5sums=('SKIP'
         '2901d65f1b1fe354e72850085cd1c072')
_pkgname=ipython

# confirm that an update does not break sage?

pkgver() {
  cd "$_pkgname"
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd "${srcdir}/${_pkgname}"
  export PYTHONHASHSEED=0
  python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
  install -Dm644 docs/source/about/license_and_copyright.rst "$pkgdir/usr/share/licenses/ipython/LICENSE"

  cd "examples/IPython Kernel"
  # FS#45120
  sed -i 's/gnome-netstatus-idle/ipython/' *.desktop
  install -Dm644 ipython.desktop "$pkgdir/usr/share/applications/ipython.desktop"
  #install -Dm644 ipython-qtconsole.desktop "$pkgdir/usr/share/applications/ipython-qtconsole.desktop"
  # FS#47046
  install -Dm644 "$srcdir/ipython.png" "$pkgdir/usr/share/pixmaps/ipython.png"

  #cd $srcdir/ipython-$pkgver/IPython/qt/console/resources/icon/
  #install -Dm644 IPythonConsole.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/ipython.svg"
}