mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
69 lines
2.1 KiB
Bash
69 lines
2.1 KiB
Bash
# Contributor: John Proctor <jproctor@prium.net>
|
|
# Contributor: Daniel White <daniel@whitehouse.id.au>
|
|
# Maintainer: Juergen Hoetzel <juergen@archlinux.org>
|
|
# Contributor: Leslie Polzer (skypher)
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - remove hard-coded -march=armv5 CFLAGS
|
|
|
|
buildarch=12
|
|
highmem=1
|
|
|
|
pkgname=sbcl
|
|
pkgver=2.1.9
|
|
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=('9e746ff12c4f78d2deabd95e48169b552f9472808cf8b8fc801d84df3e962fa1'
|
|
'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
|
|
sh make.sh sbcl --prefix=/usr --fancy
|
|
make -C doc/manual info
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
# cannot have both SBCL_HOME and INSTALL_ROOT
|
|
SBCL_HOME="" INSTALL_ROOT="$pkgdir/usr" sh install.sh
|
|
|
|
src/runtime/sbcl --core output/sbcl.core --script "${srcdir}/arch-fixes.lisp"
|
|
mv sbcl-new.core "${pkgdir}/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"
|
|
|
|
}
|