extra/sbcl to 2.0.8-1

This commit is contained in:
Kevin Mihelich 2020-09-01 20:29:02 +00:00
parent ab752f03d4
commit 8c3cf535cb

View file

@ -4,15 +4,13 @@
# Contributor: Leslie Polzer (skypher) # Contributor: Leslie Polzer (skypher)
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org> # ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - disable sb-thread on 32-bit ARM: not supported
# - enable sb-thread and largefile on AArch64
# - remove hard-coded -march=armv5 CFLAGS # - remove hard-coded -march=armv5 CFLAGS
buildarch=12 buildarch=12
highmem=1 highmem=1
pkgname=sbcl pkgname=sbcl
pkgver=2.0.5 pkgver=2.0.8
pkgrel=1 pkgrel=1
pkgdesc="Steel Bank Common Lisp" pkgdesc="Steel Bank Common Lisp"
url="http://www.sbcl.org/" url="http://www.sbcl.org/"
@ -23,7 +21,7 @@ provides=('common-lisp' 'cl-asdf')
makedepends=('sbcl') makedepends=('sbcl')
source=("https://downloads.sourceforge.net/project/sbcl/sbcl/$pkgver/$pkgname-$pkgver-source.tar.bz2" source=("https://downloads.sourceforge.net/project/sbcl/sbcl/$pkgver/$pkgname-$pkgver-source.tar.bz2"
"arch-fixes.lisp") "arch-fixes.lisp")
sha256sums=('0050f88dd12893c90f03e7b6c3b998929dcd08e7bb0ca5c4003be6110337e2cb' sha256sums=('208d46f7b94d256d036f0efc9734e6b34a85c51bb03c3eb8bf39b7a3efe699f7'
'b5a6468dcbc1012cae2c3cda155762a37b6d96ef89bba4f723315063b0b5e7ce') 'b5a6468dcbc1012cae2c3cda155762a37b6d96ef89bba4f723315063b0b5e7ce')
prepare() { prepare() {
@ -40,27 +38,7 @@ build() {
export LINKFLAGS="$LDFLAGS" export LINKFLAGS="$LDFLAGS"
unset LDFLAGS unset LDFLAGS
unset MAKEFLAGS unset MAKEFLAGS
if [[ ${CARCH} = x86_64 || ${CARCH} = aarch64 ]]; then sh make.sh sbcl --prefix=/usr --fancy
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 <<EOF
(lambda (features)
(flet ((enable (x) (pushnew x features))
(disable (x) (setf features (remove x features))))
(${enable_disable_thread} :sb-thread)
(enable :sb-core-compression)
(${enable_disable_largefile} :largefile)))
EOF
sh make.sh sbcl --prefix=/usr
make -C doc/manual info make -C doc/manual info
} }