updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / slime-cvs / PKGBUILD
blobf0524e106568a8d625d66fc90b5220c36bb5f548
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-cvs 
6 pkgver=20111224
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=(licenses)
20 md5sums=('1cdfb69afc10f0d0b690884591678081')
22 _cvsroot=:pserver:anonymous:anonymous@common-lisp.net:/project/slime/cvsroot
23 _cvsmod=slime
25 build() {
26   cd "$srcdir"
27   msg "Connecting to CVS server...."
29   if [[ -d "$_cvsmod/CVS" ]]; then
30     cd "$_cvsmod"
31     cvs -z3 update -d
32   else
33     cvs -z3 -d "$_cvsroot" co -D "$pkgver" -f "$_cvsmod"
34     cd "$_cvsmod"
35   fi
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"
44 package() {
45   cd "$srcdir/$_cvsmod-build"
46   
47   install -d $pkgdir/usr/share/emacs/site-lisp/slime
48   cp -r $srcdir/slime/* \
49     $pkgdir/usr/share/emacs/site-lisp/slime
50   
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 
58   cd $srcdir/slime/doc
59   make 
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