aboutsummaryrefslogtreecommitdiffstats
path: root/testing/sbcl/APKBUILD
blob: 9a699c908f5bb8edfc1db6a4376cab6e1cd5288b (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer:
pkgname=sbcl
pkgver=1.4.9
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/$pkgname/$pkgname-$pkgver-source.tar.bz2
	pax-genesis-stage-two.patch
	musl-fixes.patch
	musl-fix-threads.patch
	sbcl_prefix.patch
	fix-generate-version.patch
	"
builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	default_prepare

	# FIXME: This test fails (returns incorrect result), don't know why.
	rm tests/traceroot.test.sh
}

build() {
	cd "$builddir"

	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() {
	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="e0248f460f9737d47653dd520732062d2637813b550df356ecc90aa6d21fbdd74f03182d1e890c09c1da742f7d57b4fbd04a4e6dc36999aca51bb6c2952ac236  sbcl-1.4.9.tar.bz2
cda5c7268b314145a1bdb8293c7970e077aebf3cce5dace12542bf18beb7b124bf97f4754906f2f681428869ca3060300b88cab80055a3d5881dfcdcfbe51d6d  pax-genesis-stage-two.patch
19bb9dac5997366c9778e349b707970832c5020ac55f0099dd652a8cc8c43336d34a33db2e4f7f190ab8212b064718f6999b832c249a4de7d24eae2186d6acea  musl-fixes.patch
86b8a51d518d71a3c4d3069f80bc00cccd4b97edc6c96ff12875a0727cc2b96208f35c3a11044d98881b5e6c2e607fc65506020b7ff990b257edae55eb6a1c59  musl-fix-threads.patch
bfb6bef3b6512e487e45bc8c9cf36aa519e470690b6c7036bba7d28269bd899c60a4dfa09b5aba44830b8c002e7191276f2cf6f8f134b163d05af7b46f9849ff  sbcl_prefix.patch
acd6a154e539dde5c8c6726cc553cc79b1ba98670f61596a3f7754126de35fae1656c98963169ec5dff1551d33632e00e1a40fa65aec73a729317d814825c6a1  fix-generate-version.patch"