cruxports/sbcl/Pkgfile

28 lines
817 B
Plaintext

# Description: Steel Bank Common Lisp
# URL: http://www.sbcl.org/
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: zlib clisp
# Optional: texinfo
name=sbcl
version=2.4.0
release=1
source=(https://prdownloads.sourceforge.net/$name/$name-$version-source.tar.bz2)
build() {
cd $name-$version
export CFLAGS+=" -D_GNU_SOURCE -fno-omit-frame-pointer -DSBCL_HOME=/usr/lib/sbcl"
export LINKFLAGS="$LDFLAGS"
bash make.sh \
--xc-host=clisp \
--without-sb-test --with-sb-core-compression --prefix=/usr
prt-get isinst texinfo && make -C ./doc/manual info
SBCL_HOME="" INSTALL_ROOT="$PKG/usr" sh install.sh
make PREFIX=/usr DESTDIR=$PKG install
rm -rf $PKG/usr/share/info
rm -f $PKG/usr/share/doc/$name/{BUGS,CREDITS,COPYING,NEWS}
prt-get isinst texinfo || rm -rf $PKG/usr/share/doc
}