1 # Maintainer: Taylor Venable <taylor@metasyntax.net>
6 pkgdesc="Scheme 48 is an implementation of Scheme"
9 makedepends=('scheme48' 'racket')
12 conflicts=('scheme48')
15 source=('makefile.patch')
16 md5sums=('ff2ba5d95489e472b17626e7dc22f396')
19 _hgroot='http://www.s48.org/cgi-bin/hgwebdir.cgi'
26 hg clone "$_hgrepo" build
29 patch < "${srcdir}/makefile.patch"
31 # Taken from the autogen.sh script. If you just call that script by itself,
32 # you can't invoke configure with arguments and you can't install (because it
33 # removes the Makefile when it's done).
35 ACLOCAL="aclocal -I m4" autoreconf -v -i
36 ./configure --prefix=/usr --docdir=/usr/share/doc/scheme48
38 rm -f scheme48.image build/initial.image-32 build/initial.image-64 c/scheme48.h
39 make build/filenames.make
40 make i-know-what-i-am-doing
42 make build/initial.image-32 build/initial.image-64
48 # This is so wrong. We need to get tex2page from the Racket installation to
49 # build the docs. Sigh.
51 rm -rf "${srcdir}/tmp"
52 mkdir -p "${srcdir}/tmp/texmf/tex/latex"
53 mkdir -p "${srcdir}/tmp/texmf/tex/plain"
54 cp /usr/lib/racket/collects/tex2page/tex2page.sty "${srcdir}/tmp/texmf/tex/latex"
55 cp /usr/lib/racket/collects/tex2page/tex2page.tex "${srcdir}/tmp/texmf/tex/plain"
56 mktexlsr "${srcdir}/tmp/texmf"
57 export TEXMFLOCAL="${srcdir}/tmp/texmf"
59 make DESTDIR="$pkgdir" install
60 install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
62 # Generic names not allowed - they would conflict with the generic names used
63 # by other packages. Sigh.
65 rm "${pkgdir}/usr/bin/scheme-r5rs"
66 rm "${pkgdir}/usr/bin/scheme-srfi-7"