PKGBUILDs/extra/sbcl/PKGBUILD

70 lines
2.1 KiB
Bash
Raw Normal View History

2015-09-21 23:38:08 +00:00
# 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>
2020-01-10 13:53:35 +00:00
# - remove hard-coded -march=armv5 CFLAGS
2015-09-21 23:38:08 +00:00
2018-06-18 18:22:04 +00:00
buildarch=12
2019-06-09 14:59:50 +00:00
highmem=1
2015-09-21 23:38:08 +00:00
pkgname=sbcl
2021-12-11 18:22:42 +00:00
pkgver=2.1.11
2016-11-16 00:55:55 +00:00
pkgrel=1
2015-09-21 23:38:08 +00:00
pkgdesc="Steel Bank Common Lisp"
url="http://www.sbcl.org/"
2018-04-02 23:36:49 +00:00
arch=('x86_64')
2015-09-21 23:38:08 +00:00
license=('custom')
2016-12-28 18:18:50 +00:00
depends=('zlib')
2015-09-21 23:38:08 +00:00
provides=('common-lisp' 'cl-asdf')
makedepends=('sbcl')
2016-11-16 00:55:55 +00:00
source=("https://downloads.sourceforge.net/project/sbcl/sbcl/$pkgver/$pkgname-$pkgver-source.tar.bz2"
2018-05-19 16:53:15 +00:00
"arch-fixes.lisp")
2021-12-11 18:22:42 +00:00
sha256sums=('bfc1481de7fdbdfaeef2ab0f0e8e84efd343433dea8d21cfbea8b0146cbdfefd'
2018-05-19 16:53:15 +00:00
'b5a6468dcbc1012cae2c3cda155762a37b6d96ef89bba4f723315063b0b5e7ce')
2015-09-21 23:38:08 +00:00
2020-01-10 13:53:35 +00:00
prepare() {
cd "$srcdir/$pkgname-$pkgver"
sed -i 's/-march=armv5//' src/runtime/Config.arm-linux
}
2015-09-21 23:38:08 +00:00
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
2020-09-01 20:29:02 +00:00
sh make.sh sbcl --prefix=/usr --fancy
2015-09-21 23:38:08 +00:00
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
2020-11-10 18:44:59 +00:00
rm "$pkgdir/usr/share/sbcl-source/src/runtime/sbcl"
2015-09-21 23:38:08 +00:00
}