blob: 522d428b4c21b9bc6e7b6917e7d55f51d361a9d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
# $Id: PKGBUILD 187814 2013-06-06 11:10:02Z juergen $
# Contributor: John Proctor <jproctor@prium.net>
# Contributor: Daniel White <daniel@whitehouse.id.au>
# Maintainer: Juergen Hoetzel <juergen@archlinux.org>
# Contributor: Leslie Polzer (skypher)
pkgname=sbcl
pkgver=1.1.8
pkgrel=1
pkgdesc="Steel Bank Common Lisp"
url="http://www.sbcl.org/"
arch=('i686' 'x86_64')
license=('custom')
depends=('glibc' 'zlib')
provides=('common-lisp' 'cl-asdf')
makedepends=('sbcl')
install=sbcl.install
source=("http://downloads.sourceforge.net/project/sbcl/sbcl/$pkgver/$pkgname-$pkgver-source.tar.bz2"
"arch-fixes.lisp"
"ftp://ftp.gnu.org/pub/gnu/texinfo/texinfo-4.13a.tar.gz"
"texinfo-4.13a-data_types.patch")
md5sums=('118dea06e26151d8315a118169ec16ec'
'7ac0c1936547f4278198b8bf7725204d'
'71ba711519209b5fb583fed2b3d86fcb'
'd8574782ff7def1e2dc5c291dbeaec18')
# Temporary Texinfo legacy build
# See: http://sourceforge.net/mailarchive/message.php?msg_id=30747919
build-texinfo-legacy() {
cd ${srcdir}/texinfo-4.13
patch -Np1 -i $srcdir/texinfo-4.13a-data_types.patch
mkdir -p $srcdir/texinfo-instroot
./configure --prefix=$srcdir/texinfo-instroot
make install
}
build() {
build-texinfo-legacy
export PATH=$srcdir/texinfo-instroot/bin:$PATH
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
# 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)
(enable :sb-core-compression)
(disable :largefile)))
EOF
sh make.sh sbcl --prefix=/usr
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"{,.nm}
}
|