1 # Contributor: Victor van den Elzen <victor dot vde at gmail dot com>
6 pkgdesc="A simple and efficient implementation of the Scheme programming language."
7 url="http://www.ccs.neu.edu/home/will/Larceny/"
10 makedepends=('drscheme>=4.0.0' 'nasm')
12 source=("http://www.ccs.neu.edu/home/will/Larceny/LarcenyReleases/$pkgname-$pkgver-src.tar.gz")
13 md5sums=('da35e2340b54371122531ddf3b6d3981')
16 cd $srcdir/$pkgname-$pkgver-src
17 plt-r5rs --no-prim <<EOF
19 (setup 'scheme: 'plt-r5rs 'host: 'linux86 'string-rep: 'flat4 'sassy)
27 ./larceny.bin -stopcopy -- src/Build/iasn-larceny-heap.fasl <<EOF
30 ./larceny.bin -stopcopy -- src/Build/iasn-twobit-heap.fasl <<EOF
36 (larceny:compile-r6rs-runtime)
39 local LARCENY_ROOT=/usr/lib/larceny
40 mkdir -p $pkgdir$LARCENY_ROOT
41 cp * $pkgdir$LARCENY_ROOT
42 cp -r doc examples lib $pkgdir$LARCENY_ROOT
43 mkdir -p $pkgdir/usr/bin
44 cp larceny $pkgdir/usr/bin
45 sed -i "s|# LARCENY_ROOT=.*|LARCENY_ROOT=$LARCENY_ROOT|" $pkgdir/usr/bin/larceny
46 cp $pkgdir/usr/bin/larceny $pkgdir/usr/bin/twobit