summaryrefslogtreecommitdiff
path: root/experimental/sbcl/APKBUILD
diff options
context:
space:
mode:
authorLee Starnes <lee@canned-death.us>2020-04-18 09:43:10 +0000
committerLee Starnes <lee@canned-death.us>2020-04-18 09:49:20 +0000
commit4ffe35c312b2dc8d34db57ba9ed5ce2ed1b02d94 (patch)
treef438bea71d868a5eb93fa92a443ab93afeb4ba0e /experimental/sbcl/APKBUILD
parente2de959186282f7808a01d4249933f9a89db0096 (diff)
downloadpackages-4ffe35c312b2dc8d34db57ba9ed5ce2ed1b02d94.tar.gz
packages-4ffe35c312b2dc8d34db57ba9ed5ce2ed1b02d94.tar.bz2
packages-4ffe35c312b2dc8d34db57ba9ed5ce2ed1b02d94.tar.xz
packages-4ffe35c312b2dc8d34db57ba9ed5ce2ed1b02d94.zip
experimental/sbcl: create
Diffstat (limited to 'experimental/sbcl/APKBUILD')
-rw-r--r--experimental/sbcl/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/experimental/sbcl/APKBUILD b/experimental/sbcl/APKBUILD
new file mode 100644
index 000000000..ac8408bcb
--- /dev/null
+++ b/experimental/sbcl/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: Lee Starnes <lee@canned-death.us>
+# Maintainer: Lee Starnes <lee@canned-death.us>
+pkgname=sbcl
+pkgver=2.0.3
+pkgrel=0
+pkgdesc="Steel Bank Common Lisp"
+url="http://www.sbcl.org"
+arch="pmmx x86_64 ppc ppc64 aarch64"
+license="BSD-2-Clause AND BSD-2-Clause-FreeBSD AND BSD-3-Clause AND MIT"
+depends=""
+makedepends="clisp clisp-dev"
+checkdepends="ed"
+subpackages="$pkgname-doc"
+# Patch provided by Eric Timmons: https://bugs.launchpad.net/sbcl/+bug/1768368
+source="https://sourceforge.net/projects/$pkgname/files/$pkgname/$pkgver/$pkgname-$pkgver-source.tar.bz2
+ musl-libc.patch"
+builddir="$srcdir/$pkgname-$pkgver"
+
+prepare() {
+ default_prepare
+
+ # run-program test is hard-coded to use /bin/ed but it should be /usr/bin/ed
+ sed -i 's,/bin/ed,/usr/bin/ed,g' tests/run-program.impure.lisp
+}
+
+build() {
+ sh make.sh --prefix=/usr --with-dlclose-is-noop --xc-host=clisp
+}
+
+check() {
+ cd tests && sh run-tests.sh
+}
+
+package() {
+ INSTALL_ROOT="$pkgdir"/usr sh install.sh
+}
+
+sha512sums="c29c115fff0e118e5c05959dd8d73ae876458daeb5ddde67ce485b10e6d1583b1f8a9597b54b45606696ab1b1eea5392dcb09357c83fce31323f2a5a154f2dd1 sbcl-2.0.3-source.tar.bz2
+e6757e4cc623682c501ab5e255a881833ff393efac829ffe9f67fff0a005724c3c03a23352b4c88d58b3d15dbb0cf33c8cc58d72d3795abb2f12a4bca4302165 musl-libc.patch"