1 # $Id: PKGBUILD 51731 2009-09-10 17:23:57Z juergen $
2 # Contributor: John Proctor <jproctor@prium.net>
3 # Contributor: Daniel White <daniel@whitehouse.id.au>
4 # Maintainer: Juergen Hoetzel <juergen@archlinux.org>
6 pkgname=sbcl-with-debugger
9 pkgdesc="Steel Bank Common Lisp with fixes to re-enable the debugger and compilation on x86_64."
13 provides=('common-lisp' 'cl-asdf')
14 makedepends=('sbcl' 'texinfo')
17 source=("http://downloads.sourceforge.net/project/sbcl/sbcl/$pkgver/sbcl-$pkgver-source.tar.bz2" "fix-source-path.lisp")
18 md5sums=('78c1a003281d11690f54609b4f5303f4' '8359880b74311d7340022d5211c6344b')
20 url="http://www.sbcl.org/"
25 export CFLAGS="${CFLAGS} -DSBCL_HOME=\\\"/usr/lib/sbcl\\\""
26 export GNUMAKE="make -e"
27 cd ${startdir}/src/sbcl-${pkgver}
28 # Make a multi-threaded SBCL, disable LARGEFILE
29 cat >customize-target-features.lisp <<EOF
31 (flet ((enable (x) (pushnew x features))
32 (disable (x) (setf features (remove x features))))
34 (disable :largefile)))
38 mkdir -p ${startdir}/pkg/usr
42 INSTALL_ROOT=${startdir}/pkg/usr sh install.sh
44 src/runtime/sbcl --core output/sbcl.core --script ${startdir}/src/fix-source-path.lisp
45 mv sbcl-new.core ${startdir}/pkg/usr/lib/sbcl/sbcl.core
48 mkdir -p ${startdir}/pkg/usr/share/sbcl-source
49 cp -R -t ${startdir}/pkg/usr/share/sbcl-source \
50 ${startdir}/src/sbcl-${pkgver}/{src,contrib}
53 find ${startdir}/pkg/usr/share/sbcl-source -type f \
60 rm ${startdir}/pkg/usr/share/sbcl-source/src/runtime/sbcl
61 rm ${startdir}/pkg/usr/share/sbcl-source/src/runtime/sbcl.nm
63 find ${startdir}/pkg \( -name Makefile -o -name .cvsignore \) -delete
65 rm $startdir/pkg/usr/share/info/dir
66 gzip -9nf $startdir/pkg/usr/share/info/*
69 install -D -m644 ${startdir}/src/sbcl-${pkgver}/COPYING \
70 ${startdir}/pkg/usr/share/licenses/sbcl/license.txt