aboutsummaryrefslogtreecommitdiffstats
path: root/testing/sbcl/APKBUILD
blob: b015cf273914c5b89d56aefdc7a74e45f6566689 (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Will Sinatra <wpsinatra@gmail.com>
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
pkgname=sbcl
pkgver=1.5.6
pkgrel=0
pkgdesc="Steel Bank Common Lisp"
url="http://www.sbcl.org/"
arch="x86_64"
license="custom"
checkdepends="ed"
makedepends="clisp linux-headers paxmark zlib-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.bz2::https://prdownloads.sourceforge.net/sbcl/sbcl-$pkgver-source.tar.bz2
	pax-genesis-stage-two.patch
	musl-fixes.patch
	musl-fix-threads.patch
	sbcl_prefix.patch
	"

build() {
	GNUMAKE=make ./make.sh clisp \
		--prefix=/usr \
		--with-sb-thread \
		--with-sb-test \
		--with-sb-unicode \
		--with-sb-core-compression
}

check() {
	cd "$builddir"/tests

	sh run-tests.sh
}

package() {
	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="5adeb4c694d41c08c780d5f0ed2e0f4c830ea74fdb7b345813b1cd616a0b310c2394f4727b6f5a75b04bd0dda92ee774298bef7225253e7d325e8f83bc645320  sbcl-1.5.6.tar.bz2
cda5c7268b314145a1bdb8293c7970e077aebf3cce5dace12542bf18beb7b124bf97f4754906f2f681428869ca3060300b88cab80055a3d5881dfcdcfbe51d6d  pax-genesis-stage-two.patch
507ecaf8fc296586c637d6ad8c91770efe18158a3aa551d0d2993ce9592454f33442d425d076bcb7121525d7942a03d9a0038252251f1540c575e95fb334ef7e  musl-fixes.patch
86b8a51d518d71a3c4d3069f80bc00cccd4b97edc6c96ff12875a0727cc2b96208f35c3a11044d98881b5e6c2e607fc65506020b7ff990b257edae55eb6a1c59  musl-fix-threads.patch
bfb6bef3b6512e487e45bc8c9cf36aa519e470690b6c7036bba7d28269bd899c60a4dfa09b5aba44830b8c002e7191276f2cf6f8f134b163d05af7b46f9849ff  sbcl_prefix.patch"