summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a6fbf1bead34a442379f84934b9ef864c17e91b5 (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
# Maintainer: Tarn W. Burton <twburton@gmail.com>
pkgname=clisp-git
pkgver=clisp.2.49.60.2017.06.25.r570.ga9aeb8030
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
  ./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
}