mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-04 05:57:14 +08:00
70 lines
2.0 KiB
Bash
70 lines
2.0 KiB
Bash
#
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
# no cross-compiling for this package, use i686 host
|
|
|
|
pkgname=sbcl
|
|
pkgver=1.0.55
|
|
pkgrel=1
|
|
pkgdesc="Steel Bank Common Lisp"
|
|
arch=('i686' 'x86_64')
|
|
license=('custom')
|
|
depends=('glibc')
|
|
provides=('common-lisp' 'cl-asdf')
|
|
makedepends=('sbcl' 'texinfo')
|
|
source=("http://downloads.sourceforge.net/project/sbcl/sbcl/$pkgver/$pkgname-$pkgver-source.tar.bz2" "chakra-fixes.lisp")
|
|
md5sums=('128fb15c80e8e3f8d4024bd8e04635e0' '7ac0c1936547f4278198b8bf7725204d')
|
|
url="http://www.sbcl.org/"
|
|
install=sbcl.install
|
|
|
|
build() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
export CFLAGS+=" -DSBCL_HOME=\\\"/usr/lib/sbcl\\\""
|
|
export GNUMAKE="make -e"
|
|
|
|
# build system uses LINKFLAGS and OS_LIBS to build LDFLAGS
|
|
export LINKFLAGS="$LDFLAGS"
|
|
unset LDFLAGS
|
|
|
|
# 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 :sb-thread)
|
|
(disable :largefile)))
|
|
EOF
|
|
|
|
sh make.sh sbcl
|
|
make -C doc/manual info
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
INSTALL_ROOT="$pkgdir/usr" sh install.sh
|
|
|
|
src/runtime/sbcl --core output/sbcl.core --script ${startdir}/src/chakra-fixes.lisp
|
|
mv sbcl-new.core ${startdir}/pkg/usr/lib/sbcl/sbcl.core
|
|
|
|
# sources
|
|
mkdir -p "$pkgdir/usr/share/sbcl-source"
|
|
cp -R -t "$pkgdir/usr/share/sbcl-source" "$srcdir/$pkgname-$pkgver/"{src,contrib}
|
|
|
|
# license
|
|
install -D -m644 "$srcdir/$pkgname-$pkgver/COPYING" \
|
|
"$pkgdir/usr/share/licenses/$pkgname/license.txt"
|
|
|
|
# drop unwanted files
|
|
find "$pkgdir" \( -name Makefile -o -name .cvsignore \) -delete
|
|
find "$pkgdir/usr/share/sbcl-source" -type f \
|
|
\( -name \*.fasl -o -name \*.o -o -name \*.log -o -name \*.so -o -name a.out \) -delete
|
|
|
|
rm "$pkgdir/usr/share/sbcl-source/src/runtime/sbcl"{,.nm}
|
|
|
|
}
|