add ipython-mathjax

This commit is contained in:
Thomas Weißschuh 2012-12-14 08:17:48 +00:00
commit fd2ce6b2f2
2 changed files with 33 additions and 0 deletions

13
.SRCINFO Normal file
View file

@ -0,0 +1,13 @@
pkgbase = ipython-mathjax
pkgdesc = mathjax files for usage in the ipython notebook
pkgver = 1
pkgrel = 1
url = http://ipython.org/ipython-doc/stable/install/install.html#mathjax
arch = any
license = WTFPL
depends = mathjax
optdepends = ipython: for use with ipython
optdepends = ipython2: for use with ipython2
pkgname = ipython-mathjax

20
PKGBUILD Normal file
View file

@ -0,0 +1,20 @@
# Maintainer: Thomas Weißschuh <thomas_weissschuh lavabit com>
pkgname=ipython-mathjax
pkgver=1
pkgrel=1
pkgdesc="mathjax files for usage in the ipython notebook"
url='http://ipython.org/ipython-doc/stable/install/install.html#mathjax'
arch=(any)
license=('WTFPL')
depends=('mathjax')
optdepends=('ipython: for use with ipython'
'ipython2: for use with ipython2')
package() {
install -d "${pkgdir}/usr/lib/python3.3/site-packages/IPython/frontend/html/notebook/static"
install -d "${pkgdir}/usr/lib/python2.7/site-packages/IPython/frontend/html/notebook/static"
ln -s "/usr/share/mathjax" "${pkgdir}/usr/lib/python3.3/site-packages/IPython/frontend/html/notebook/static/mathjax"
ln -s "/usr/share/mathjax" "${pkgdir}/usr/lib/python2.7/site-packages/IPython/frontend/html/notebook/static/mathjax"
}