updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / slime-snapshot / PKGBUILD
blob1109faaa1b4cdfd75a0a42ec4f2aee4dbbf397dd
1 # Contributor: Johannes Weiner <hannes@saeurebad.de>
2 # Contributor: Daniel Leidisch <spam@leidisch.net>
3 # Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
5 pkgname=slime-snapshot
6 pkgver=2012_01_21
7 pkgrel=1
8 arch=('any') 
9 pkgdesc="The Superior Lisp Interaction Mode for Emacs"
10 url="http://common-lisp.net/project/slime/" 
11 depends=('emacs')
12 makedepends=('cvs' 'awk' 'texlive-core') 
13 optdepends=('awk: for recreating the documentation' 
14   'texlive-core: for recreating the documentation') 
15 license=('custom') 
16 conflicts=('slime')
17 provides=('slime') 
18 install='slime.install'
19 source=(slime-$pkgver.tar.gz::http://common-lisp.net/project/slime/snapshots/slime-current.tgz \
20   licenses)
21 md5sums=('452b4337f5a12bf360dec409d1c76880'
22          '1cdfb69afc10f0d0b690884591678081')
24 package() {
25   cd $srcdir/slime-${pkgver//_/-}
26   
27   install -d $pkgdir/usr/share/emacs/site-lisp/slime
28   cp -r $srcdir/slime-${pkgver//_/-}/* \
29     $pkgdir/usr/share/emacs/site-lisp/slime
30   
31   install -d $pkgdir/usr/share/common-lisp/systems
32   ln -s /usr/share/emacs/site-lisp/slime/swank.asd \
33     $pkgdir/usr/share/common-lisp/systems/
35   find $pkgdir -iname "*cvs*" | xargs rm -rf
36   install -D -m644 $srcdir/licenses \
37     $pkgdir/usr/share/licenses/$pkgname/licenses 
38   cd $srcdir/slime-${pkgver//_/-}/doc
39   make 
40   make infodir=$pkgdir/usr/share/info install 
41   rm $pkgdir/usr/share/info/dir
42   install -Dm644 slime.pdf $pkgdir/usr/share/doc/slime/slime.pdf 
43   install -Dm644 slime-refcard.pdf \
44     $pkgdir/usr/share/doc/slime/slime-refcard.pdf 
45   install -d $pkgdir/usr/share/doc/slime/html 
46   install -m644 html/* $pkgdir/usr/share/doc/slime/html