#Packager: Dimitris Tzemos pkgname=sbcl pkgver=1.3.1 pkgrel=1dj source=("http://downloads.sourceforge.net/project/sbcl/sbcl/$pkgver/$pkgname-$pkgver-source.tar.bz2") docs=("HACKING" "INSTALL" "NEWS" "OPTIMIZATIONS" "PRINCIPLES" "README" "TLA" "TODO") url="http://www.sbcl.org/" slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "sbcl (Steel Bank Common Lisp)" "Steel Bank Common Lisp (SBCL) is an open source (free software)" "compiler and runtime system for ANSI Common Lisp. It provides an" "interactive environment including an integrated native compiler," "a debugger, and many extensions." "" "Homepage: http://www.sbcl.org/" ) build() { cd "$SRC/$pkgname-$pkgver" sh make.sh clisp --prefix=/usr make -C doc/manual info # cannot have both SBCL_HOME and INSTALL_ROOT SBCL_HOME="" INSTALL_ROOT="$PKG/usr" sh install.sh # Fixup /usr/lib -> /usr/lib64 if on x86_64: if [ "$arch" = "x86_64" ]; then mv $PKG/usr/lib $PKG/usr/lib${LIBDIRSUFFIX} fi mkdir -p $PKG/etc/profile.d cat > $PKG/etc/profile.d/sbcl.csh << EOF #!/bin/csh setenv SBCL_HOME /usr/lib${LIBDIRSUFFIX}/sbcl EOF cat > $PKG/etc/profile.d/sbcl.sh << EOF #!/bin/sh export SBCL_HOME=/usr/lib${LIBDIRSUFFIX}/sbcl EOF chmod 0755 $PKG/etc/profile.d/* }