# $Id$ # Contributor: John Proctor # Contributor: Daniel White # Maintainer: Juergen Hoetzel # Contributor: Leslie Polzer (skypher) # ALARM: Kevin Mihelich # - disable sb-thread, not supported on ARM # - upstream patch for ARM buildarch=4 pkgname=sbcl pkgver=1.4.6 pkgrel=1 pkgdesc="Steel Bank Common Lisp" url="http://www.sbcl.org/" arch=('x86_64') license=('custom') depends=('zlib') provides=('common-lisp' 'cl-asdf') makedepends=('sbcl') source=("https://downloads.sourceforge.net/project/sbcl/sbcl/$pkgver/$pkgname-$pkgver-source.tar.bz2" "arch-fixes.lisp" "https://github.com/sbcl/sbcl/commit/c529dc9aa94822dbb0eae2d181d413900550c813.patch") sha256sums=('4411b01329d4dd531c8a0cb4036462fb4fd5f6e7abe2d521c6aa2a3adefb8678' 'b5a6468dcbc1012cae2c3cda155762a37b6d96ef89bba4f723315063b0b5e7ce' '3fd9b968902bf42b81cd3ab4493a004b46f328aa78b529b9323e140a33438c29') prepare() { cd "$srcdir/$pkgname-$pkgver" patch -p1 -i ../c529dc9aa94822dbb0eae2d181d413900550c813.patch } build() { cd "$srcdir/$pkgname-$pkgver" export CFLAGS+=" -D_GNU_SOURCE -fno-omit-frame-pointer -DSBCL_HOME=/usr/lib/sbcl" export GNUMAKE="make" # build system uses LINKFLAGS and OS_LIBS to build LDFLAGS export LINKFLAGS="$LDFLAGS" unset LDFLAGS unset MAKEFLAGS if [[ ${CARCH} = x86_64 ]]; then enable_disable_largefile=enable else enable_disable_largefile=disable fi # Make a multi-threaded SBCL, disable LARGEFILE cat >customize-target-features.lisp <