summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e1f6fa6d651b59b68604d735fe4b658ee7c35890 (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
# Maintainer: Tarn W. Burton <twburton@gmail.com>
pkgname=clisp-git
pkgver=clisp.2.49.60.2017.06.25.r576.g129eaf3f1
pkgrel=1
pkgdesc="ANSI Common Lisp interpreter, compiler and debugger"
arch=('x86_64')
license=('GPL')
url="https://clisp.sourceforge.io/"
depends=('readline' 'libsigsegv' 'ffcall')
provides=('common-lisp')
conflicts=('clisp' 'clisp-new-clx')
makedepends=('git')
options=('!makeflags' '!emptydirs')
source=($pkgname::git+https://gitlab.com/gnu-clisp/clisp.git)
md5sums=('SKIP')

pkgver() {
  cd "$pkgname"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd $pkgname
  sed -i 's/clhs.el//g' src/makemake.in
  ./configure --prefix=/usr --with-readline --with-ffcall --with-module=asdf --with-dynamic-ffi --with-threads=POSIX_THREADS --with-debug --config build
  cd build
  make
}

check() {
  cd $pkgname/build
  make check || :
}

package() {
  cd $pkgname/build
  make DESTDIR=$pkgdir install
}