summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aed63f038c88dd9bf5ac661182002da16b60d295 (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
# Maintainer: Antoine Carpentier <antoine.carpentier.info@gmail.com>
pkgname=cl-jupyter
pkgver=0.7
pkgrel=3
pkgdesc="An enhanced interactive Shell for Common Lisp (based on the Jupyter protocol)"
arch=('any')
url="https://github.com/fredokun/$pkgname"
license=('https://github.com/fredokun/cl-jupyter/blob/master/LICENSE')
source=("git+https://github.com/fredokun/$pkgname")
depends=('sbcl' 'python' 'jupyter-notebook' 'quicklisp' 'asdf')
install=$pkgname.install
sha256sums=('SKIP')

package ()
{
  mkdir -p $pkgdir/usr/lib
  cp -r /usr/lib/quicklisp $pkgdir/usr/lib/quicklisp
  cp -r "$srcdir/$pkgname" "$pkgdir/usr/lib/$pkgname"
  chmod +x "$pkgdir/usr/lib/$pkgname/install-cl-jupyter.py"
	sbcl --no-userinit --load /usr/lib/asdf/asdf --load $pkgdir/usr/lib/quicklisp/setup --load $pkgdir/usr/lib/cl-jupyter/cl-jupyter
  chmod 777 -R $pkgdir/usr/lib/quicklisp/dists
  chmod 777 -R $pkgdir/usr/lib/quicklisp/local-projects
  find /usr/lib/quicklisp -type f -exec rm -f $pkgdir{} \;
}

# vim:set ts=2 sw=2 et: