summaryrefslogtreecommitdiff
path: root/extra/sbcl/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/sbcl/PKGBUILD')
-rw-r--r--extra/sbcl/PKGBUILD72
1 files changed, 38 insertions, 34 deletions
diff --git a/extra/sbcl/PKGBUILD b/extra/sbcl/PKGBUILD
index 6b53be48d..c1e659b61 100644
--- a/extra/sbcl/PKGBUILD
+++ b/extra/sbcl/PKGBUILD
@@ -1,13 +1,14 @@
-# $Id: PKGBUILD 132801 2011-07-26 10:22:05Z juergen $
+# $Id: PKGBUILD 135444 2011-08-13 20:11:24Z dreisner $
# Contributor: John Proctor <jproctor@prium.net>
# Contributor: Daniel White <daniel@whitehouse.id.au>
# Maintainer: Juergen Hoetzel <juergen@archlinux.org>
-# Contributor: Leslie Polzer (skypher)
+# Contributor: Leslie Polzer (skypher)
pkgname=sbcl
pkgver=1.0.50
-pkgrel=1
+pkgrel=2
pkgdesc="Steel Bank Common Lisp"
+url="http://www.sbcl.org/"
arch=('i686' 'x86_64' 'mips64el')
license=('custom')
depends=('glibc')
@@ -20,17 +21,24 @@ source=("http://downloads.sourceforge.net/project/sbcl/sbcl/$pkgver/$pkgname-$pk
md5sums=('74ce9b24516885d066ec4287cde52e8c'
'7ac0c1936547f4278198b8bf7725204d'
'a456535d65d6c5b85b1b646f11455fce')
-url="http://www.sbcl.org/"
install=sbcl.install
+source=("http://downloads.sourceforge.net/project/sbcl/sbcl/$pkgver/$pkgname-$pkgver-source.tar.bz2"
+ "arch-fixes.lisp"
+ "0001-Fix-version-string-parsing-for-Linux-3.0.patch")
+md5sums=('74ce9b24516885d066ec4287cde52e8c'
+ '7ac0c1936547f4278198b8bf7725204d'
+ '7af58d1de2d788ad6a8d82c89279a75f')
build() {
- export CFLAGS="${CFLAGS} -DSBCL_HOME=\\\"/usr/lib/sbcl\\\""
+ cd "$srcdir/$pkgname-$pkgver"
+
+ export CFLAGS+=" -DSBCL_HOME=\\\"/usr/lib/sbcl\\\""
export GNUMAKE="make -e"
# build system uses LINKFLAGS and OS_LIBS to build LDFLAGS
- export LINKFLAGS="$LD_FLAGS"
+ export LINKFLAGS="$LDFLAGS"
unset LDFLAGS
- cd ${startdir}/src/${pkgname}-${pkgver}
+
# Make a multi-threaded SBCL, disable LARGEFILE
cat >customize-target-features.lisp <<EOF
(lambda (features)
@@ -40,44 +48,40 @@ build() {
(disable :largefile)))
EOF
+ # fix build against 3.0-ARCH
+ patch -Np1 < "$srcdir/0001-Fix-version-string-parsing-for-Linux-3.0.patch"
patch -Nup1 < "${srcdir}/mips-arch.h.diff"
if [ "$CARCH" = "mips64el" ]; then
- sh make.sh clisp
+ sh make.sh clisp
else
- sh make.sh sbcl
+ sh make.sh sbcl
fi
- mkdir -p ${startdir}/pkg/usr
- pushd doc/manual
- make info || return 1
- popd
- INSTALL_ROOT=${startdir}/pkg/usr sh install.sh
+
+ make -C doc/manual info
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ INSTALL_ROOT="$pkgdir/usr" sh install.sh
src/runtime/sbcl --core output/sbcl.core --script ${startdir}/src/arch-fixes.lisp
mv sbcl-new.core ${startdir}/pkg/usr/lib/sbcl/sbcl.core
-# sources
- mkdir -p ${startdir}/pkg/usr/share/sbcl-source
- cp -R -t ${startdir}/pkg/usr/share/sbcl-source \
- ${startdir}/src/${pkgname}-${pkgver}/{src,contrib}
+ # sources
+ mkdir -p "$pkgdir/usr/share/sbcl-source"
+ cp -R -t "$pkgdir/usr/share/sbcl-source" "$srcdir/$pkgname-$pkgver/"{src,contrib}
-# drop unwanted files
- find ${startdir}/pkg/usr/share/sbcl-source -type f \
- -name \*.fasl -or \
- -name \*.o -or \
- -name \*.log -or \
- -name \*.so -or \
- -name a.out -delete
-
- rm ${startdir}/pkg/usr/share/sbcl-source/src/runtime/sbcl
- rm ${startdir}/pkg/usr/share/sbcl-source/src/runtime/sbcl.nm
+ # license
+ install -D -m644 "$srcdir/$pkgname-$pkgver/COPYING" \
+ "$pkgdir/usr/share/licenses/$pkgname/license.txt"
- find ${startdir}/pkg \( -name Makefile -o -name .cvsignore \) -delete
+ # drop unwanted files
+ find "$pkgdir" \( -name Makefile -o -name .cvsignore \) -delete
+ find "$pkgdir/usr/share/sbcl-source" -type f \
+ \( -name \*.fasl -o -name \*.o -o -name \*.log -o -name \*.so -o -name a.out \) -delete
- rm $startdir/pkg/usr/share/info/dir
- gzip -9nf $startdir/pkg/usr/share/info/*
+ rm "$pkgdir/usr/share/sbcl-source/src/runtime/sbcl"{,.nm}
- # license
- install -D -m644 ${startdir}/src/${pkgname}-${pkgver}/COPYING \
- ${startdir}/pkg/usr/share/licenses/${pkgname}/license.txt
}