1 # Contributor: Johannes Weiner <hannes@saeurebad.de>
2 # Contributor: Daniel Leidisch <spam@leidisch.net>
3 # Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
9 pkgdesc="The Superior Lisp Interaction Mode for Emacs"
10 url="http://common-lisp.net/project/slime/"
12 makedepends=('cvs' 'awk' 'texlive-core')
13 optdepends=('awk: for recreating the documentation'
14 'texlive-core: for recreating the documentation')
18 install='slime.install'
20 md5sums=('1cdfb69afc10f0d0b690884591678081')
22 _cvsroot=:pserver:anonymous:anonymous@common-lisp.net:/project/slime/cvsroot
27 msg "Connecting to CVS server...."
29 if [[ -d "$_cvsmod/CVS" ]]; then
33 cvs -z3 -d "$_cvsroot" co -D "$pkgver" -f "$_cvsmod"
37 msg "CVS checkout done or server timeout"
38 msg "Starting build..."
40 rm -rf "$srcdir/$_cvsmod-build"
41 cp -r "$srcdir/$_cvsmod" "$srcdir/$_cvsmod-build"
45 cd "$srcdir/$_cvsmod-build"
47 install -d $pkgdir/usr/share/emacs/site-lisp/slime
48 cp -r $srcdir/slime/* \
49 $pkgdir/usr/share/emacs/site-lisp/slime
51 install -d $pkgdir/usr/share/common-lisp/systems
52 ln -s /usr/share/emacs/site-lisp/slime/swank.asd \
53 $pkgdir/usr/share/common-lisp/systems/
55 find $pkgdir -iname "*cvs*" | xargs rm -rf
56 install -D -m644 $srcdir/licenses \
57 $pkgdir/usr/share/licenses/$pkgname/licenses
60 make infodir=$pkgdir/usr/share/info install
61 rm $pkgdir/usr/share/info/dir
62 install -Dm644 slime.pdf $pkgdir/usr/share/doc/slime/slime.pdf
63 install -Dm644 slime-refcard.pdf \
64 $pkgdir/usr/share/doc/slime/slime-refcard.pdf
65 install -d $pkgdir/usr/share/doc/slime/html
66 install -m644 html/* $pkgdir/usr/share/doc/slime/html