PKGBUILDs/extra/clisp/PKGBUILD

59 lines
1.7 KiB
Bash
Raw Normal View History

2014-06-24 02:05:07 +00:00
# $Id$
# Maintainer: Juergen Hoetzel <juergen@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch to fix ARM assembly
# - ulimit change to fix segfaults
pkgname=clisp
pkgver=2.49
2016-11-14 13:37:47 +00:00
pkgrel=6
2014-06-24 02:05:07 +00:00
pkgdesc="ANSI Common Lisp interpreter, compiler and debugger"
arch=('i686' 'x86_64')
license=('GPL')
url="http://clisp.cons.org/"
depends=('readline' 'libsigsegv')
provides=('common-lisp')
makedepends=('ffcall')
options=('!makeflags' '!emptydirs')
source=("http://downloads.sourceforge.net/sourceforge/clisp/clisp-${pkgver}.tar.bz2"
'clisp-gcc5.patch'
2016-11-14 13:37:47 +00:00
"patch-modules_readline_readline.lisp"
2014-06-24 02:05:07 +00:00
'clisp-arm.patch')
md5sums=('1962b99d5e530390ec3829236d168649'
2016-11-14 13:37:47 +00:00
'e3008f96f6cd3059717d4a930b8c0e9c'
'5b29c9301ab7c1b683da70c2f805609f'
2014-06-24 02:05:07 +00:00
'f52b37840eaae76410f14f1adc8a00e2')
prepare() {
cd $srcdir/${pkgname}-${pkgver}
patch -Np1 -i ../clisp-gcc5.patch
2016-11-14 13:37:47 +00:00
patch -Np0 -i ../patch-modules_readline_readline.lisp
2014-06-24 02:05:07 +00:00
patch -p0 -i ../clisp-arm.patch
ulimit -s unlimited
2016-11-14 13:37:47 +00:00
# https://sourceforge.net/p/clisp/clisp/ci/cebd289dfc19de4aa504113dfcb0284657787430/
# http://hg.slitaz.org/wok/rev/d5a39f30f9f1#l2.28
sed -i 's/clisp\.cons\.org/clisp.org/' src/cfgunix.lisp
2014-06-24 02:05:07 +00:00
}
build() {
cd $srcdir/${pkgname}-${pkgver}
./configure --prefix=/usr --with-readline --with-ffcall src
cd src
./makemake --prefix=/usr --with-readline --with-ffcall --with-dynamic-ffi > Makefile
make
sed -i 's,http://www.lisp.org/HyperSpec/,http://www.lispworks.com/reference/HyperSpec/,g' config.lisp
make
}
check() {
cd $srcdir/${pkgname}-${pkgver}/src
make check
}
package() {
cd $srcdir/${pkgname}-${pkgver}/src
make DESTDIR=$pkgdir install
}