summaryrefslogtreecommitdiffstats
path: root/abs/extra/clisp/PKGBUILD
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-02-16 19:35:18 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-02-16 19:35:18 (GMT)
commite7946d6f6e406e53345fb8b3f4a7a1b3bd53238c (patch)
tree50bf1affae6ec57e8aa625c5b9ca3ac2d7c42853 /abs/extra/clisp/PKGBUILD
parent645000e4b72719a4aa195196629ad1fa628acca1 (diff)
downloadlinhes_pkgbuild-e7946d6f6e406e53345fb8b3f4a7a1b3bd53238c.zip
linhes_pkgbuild-e7946d6f6e406e53345fb8b3f4a7a1b3bd53238c.tar.gz
linhes_pkgbuild-e7946d6f6e406e53345fb8b3f4a7a1b3bd53238c.tar.bz2
clisp: initial inclusion
Diffstat (limited to 'abs/extra/clisp/PKGBUILD')
-rw-r--r--abs/extra/clisp/PKGBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/abs/extra/clisp/PKGBUILD b/abs/extra/clisp/PKGBUILD
new file mode 100644
index 0000000..9a133f2
--- /dev/null
+++ b/abs/extra/clisp/PKGBUILD
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Juergen Hoetzel <juergen@archlinux.org>
+pkgname=clisp
+pkgver=2.49
+pkgrel=6
+pkgdesc="ANSI Common Lisp interpreter, compiler and debugger"
+arch=('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"
+ "patch-modules_readline_readline.lisp")
+md5sums=('1962b99d5e530390ec3829236d168649'
+ 'e3008f96f6cd3059717d4a930b8c0e9c'
+ '5b29c9301ab7c1b683da70c2f805609f')
+
+prepare() {
+ cd $srcdir/${pkgname}-${pkgver}
+ patch -Np1 -i ../clisp-gcc5.patch
+ patch -Np0 -i ../patch-modules_readline_readline.lisp
+
+ # 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
+}
+
+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
+}