blob: e49a83c31e7df57293ab169d5f2131ca53e360ea (
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
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer:
pkgname=sbcl
pkgver=1.3.16
pkgrel=0
pkgdesc="Steel Bank Common Lisp"
url="http://www.sbcl.org/"
arch="x86_64"
license="custom"
depends=""
depends_dev=""
makedepends="zlib-dev clisp paxmark linux-headers"
install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.bz2::http://prdownloads.sourceforge.net/$pkgname/$pkgname-$pkgver-source.tar.bz2
pax-genesis-stage-two.patch
ignore-test-failure.patch
musl-fixes.patch
no-pie.patch
config"
builddir="$srcdir"/$pkgname-$pkgver
prepare() {
default_prepare
cp "$srcdir"/config "$builddir"/customize-target-features.lisp
sed -e "s@CFLAGS =.*\$@CFLAGS = ${CFLAGS} -D_GNU_SOURCE@" \
-e "s@LINKFLAGS =.*\$@LINKFLAGS = ${LDFLAGS}@" \
-i src/runtime/GNUmakefile
sed -e 's@SBCL_PREFIX=\"/usr/local\"@SBCL_PREFIX=\"/usr\"@' \
-i make-config.sh
}
build() {
cd "$builddir"
GNUMAKE=make ./make.sh "clisp" --prefix=/usr
}
package() {
cd "$builddir"
INSTALL_ROOT="$pkgdir/usr" LIB_DIR="/usr/lib" \
DOC_DIR="$pkgdir/usr/share/doc/$pkgname" \
sh install.sh
paxmark -rm "$pkgdir"/usr/bin/sbcl
install -Dm644 COPYING \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
rmdir "$pkgdir"/usr/share/doc/sbcl/html \
"$pkgdir"/usr/share/info 2>/dev/null || true
}
sha512sums="6bb0a7c926ba8031c319697b49b85eb58ea262d47237b2e7735738ad6103a759016a269e617931095174066f830e2edc362bf89384a97c3d19807552caf826b4 sbcl-1.3.16.tar.bz2
cda5c7268b314145a1bdb8293c7970e077aebf3cce5dace12542bf18beb7b124bf97f4754906f2f681428869ca3060300b88cab80055a3d5881dfcdcfbe51d6d pax-genesis-stage-two.patch
fcaf0754084d705b263cbca20988e2cacc96470d4f0f2e15b812678ba8d15a43de2b3ebd87648f6540833615fdbde0011f72ce7800b02dcbd8055229eb439ec3 ignore-test-failure.patch
8f4b83ff626536a4b10b4361115b0ac45ee6bccf1b090f9ca56ef52bd0ddbc7caf096b96de122ee88152e1f8dc26aca74bdd4e15895f0893cd98aed4b9aa4d1a musl-fixes.patch
124920cea17f586924bca4edeca3078574f16a4c95601a6d4fdc538cb116e85f95ffd342c23fbf4383eeff1e8e116b6bb896744740940e4a24085356ed43a1c0 no-pie.patch
03516a49ae8753e254a0a3fa48429d796ffacbc08360d8a41563cf8e3c3fe7fd6989021be6733549460bd78575cd5267fab9315dec53b16f5c349a990f4597dc config"
|