aboutsummaryrefslogtreecommitdiffstats
path: root/testing/sbcl/APKBUILD
blob: 028202a7d7972941ffbe656dc72da07daba993a7 (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer:
pkgname=sbcl
pkgver=1.3.12
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 || return 1
	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 || return 1

	sed -e 's@SBCL_PREFIX=\"/usr/local\"@SBCL_PREFIX=\"/usr\"@' \
		-i make-config.sh || return 1
}

build() {
	cd "$builddir"
	GNUMAKE=make ./make.sh "clisp" \
		--prefix=/usr || return 1
}

package() {
	cd "$builddir"
	INSTALL_ROOT="$pkgdir/usr" LIB_DIR="/usr/lib" \
		DOC_DIR="$pkgdir/usr/share/doc/$pkgname" \
		sh install.sh || return 1

	paxmark -rm "$pkgdir"/usr/bin/sbcl || return 1
	install -Dm644 COPYING \
		"$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt \
		|| return 1

	rmdir "$pkgdir"/usr/share/doc/sbcl/html \
		"$pkgdir"/usr/share/info 2>/dev/null || true
}

md5sums="96cdbd8eeba8fd113f21da3fbc97fc75  sbcl-1.3.12.tar.bz2
75d04dede30f6b16a496dc6d5156c113  pax-genesis-stage-two.patch
09988017e7d5b0d1db03fbd6e483b464  ignore-test-failure.patch
cd39c8080d93ebed92477a3a4193685a  musl-fixes.patch
b3b072575aafcc30acaa5342064f756a  no-pie.patch
e05428b5f57554e4d9cf6234992791ee  config"
sha256sums="8039ec01d04baad3ee3ebee7a830757dc488be33ca128f4a0592f8af701759c2  sbcl-1.3.12.tar.bz2
8aca2589af473142810218adde592a851368e4053cf8109d17de958892a8d0ac  pax-genesis-stage-two.patch
39f100d7ac6c3530291e8b9f4b18ac5ae99a109d153a8c9cb317e47ab288f386  ignore-test-failure.patch
8377ff1e88cfdf29e17eec7cb0df8b4421c728632062637907aee51af00e768b  musl-fixes.patch
10537fd7cc3fd40c3b2bd21d8296e9803547be19366b8a1e3eb22c4e32682f43  no-pie.patch
fb5dedac565b2dce9e5a1cf5fb3f84149ab0f3df8746bb24a2d1e901d7668f05  config"
sha512sums="2a2969b826dcf9d568204a01546c47af777d5866baa8da809c49ace1655b54cd4c8db1872e322a1d08a4983b0962cc0e2e346816488212709b28867c53233275  sbcl-1.3.12.tar.bz2
cda5c7268b314145a1bdb8293c7970e077aebf3cce5dace12542bf18beb7b124bf97f4754906f2f681428869ca3060300b88cab80055a3d5881dfcdcfbe51d6d  pax-genesis-stage-two.patch
fcaf0754084d705b263cbca20988e2cacc96470d4f0f2e15b812678ba8d15a43de2b3ebd87648f6540833615fdbde0011f72ce7800b02dcbd8055229eb439ec3  ignore-test-failure.patch
8f4b83ff626536a4b10b4361115b0ac45ee6bccf1b090f9ca56ef52bd0ddbc7caf096b96de122ee88152e1f8dc26aca74bdd4e15895f0893cd98aed4b9aa4d1a  musl-fixes.patch
124920cea17f586924bca4edeca3078574f16a4c95601a6d4fdc538cb116e85f95ffd342c23fbf4383eeff1e8e116b6bb896744740940e4a24085356ed43a1c0  no-pie.patch
03516a49ae8753e254a0a3fa48429d796ffacbc08360d8a41563cf8e3c3fe7fd6989021be6733549460bd78575cd5267fab9315dec53b16f5c349a990f4597dc  config"