summaryrefslogtreecommitdiff
path: root/extra/sbcl/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/sbcl/PKGBUILD')
-rw-r--r--extra/sbcl/PKGBUILD16
1 files changed, 13 insertions, 3 deletions
diff --git a/extra/sbcl/PKGBUILD b/extra/sbcl/PKGBUILD
index 8f961492e..6b53be48d 100644
--- a/extra/sbcl/PKGBUILD
+++ b/extra/sbcl/PKGBUILD
@@ -8,14 +8,18 @@ pkgname=sbcl
pkgver=1.0.50
pkgrel=1
pkgdesc="Steel Bank Common Lisp"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('custom')
depends=('glibc')
provides=('common-lisp' 'cl-asdf')
makedepends=('sbcl' 'texinfo')
-source=("http://downloads.sourceforge.net/project/sbcl/sbcl/$pkgver/$pkgname-$pkgver-source.tar.bz2" "arch-fixes.lisp")
+[ "$CARCH" = "mips64el" ] && \
+makedepends=('clisp' 'texinfo')
+source=("http://downloads.sourceforge.net/project/sbcl/sbcl/$pkgver/$pkgname-$pkgver-source.tar.bz2" "arch-fixes.lisp"
+ "mips-arch.h.diff")
md5sums=('74ce9b24516885d066ec4287cde52e8c'
- '7ac0c1936547f4278198b8bf7725204d')
+ '7ac0c1936547f4278198b8bf7725204d'
+ 'a456535d65d6c5b85b1b646f11455fce')
url="http://www.sbcl.org/"
install=sbcl.install
@@ -36,7 +40,13 @@ build() {
(disable :largefile)))
EOF
+ patch -Nup1 < "${srcdir}/mips-arch.h.diff"
+
+ if [ "$CARCH" = "mips64el" ]; then
+ sh make.sh clisp
+ else
sh make.sh sbcl
+ fi
mkdir -p ${startdir}/pkg/usr
pushd doc/manual
make info || return 1