# Contributor: John Proctor # Contributor: Daniel White # Maintainer: Juergen Hoetzel # Contributor: Leslie Polzer (skypher) # ALARM: Kevin Mihelich # - disable sb-thread on 32-bit ARM: not supported # - enable sb-thread and largefile on AArch64 # - remove hard-coded -march=armv5 CFLAGS buildarch=12 highmem=1 pkgname=sbcl pkgver=2.0.0 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") sha256sums=('90369256805d437c82ab9bdab9a410076f57810a50bb2b228de4e6c892692fcf' 'b5a6468dcbc1012cae2c3cda155762a37b6d96ef89bba4f723315063b0b5e7ce') prepare() { cd "$srcdir/$pkgname-$pkgver" sed -i 's/-march=armv5//' src/runtime/Config.arm-linux } 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 || ${CARCH} = aarch64 ]]; then enable_disable_largefile=enable else enable_disable_largefile=disable fi if [[ ${CARCH} = aarch64 ]]; then enable_disable_thread=enable else enable_disable_thread=disable fi # Make a multi-threaded SBCL, disable LARGEFILE cat >customize-target-features.lisp <