1 # Maintainer: MaurĂcio CA <mauricio.antunes@gmail.com>
5 pkgdesc="light-weight implementation of Standard ML"
7 url="http://www.itu.dk/~sestoft/mosml.html"
11 makedepends=(perl gcc make autoconf sed)
20 source=('http://www.itu.dk/people/sestoft/mosml/mos201src.tar.gz'
21 'http://www.itu.dk/people/sestoft/mosml/gc_ctrl.c')
23 md5sums=('74aaaf988201fe92a9dbfbcb1e646f70'
24 'ebb714a2d45889f4ecc796a9add40bd6')
27 [ $CARCH=x86_64 ] && cp "$srcdir/gc_ctrl.c" "$srcdir/mosml/src/runtime/gc_ctrl.c"
28 cd "$srcdir/mosml/src"
30 -e "s|^(MOSMLHOME=).*|\1$pkgdir/usr|" \
31 -e "s|^LIBDIR=.*|&/$pkgname|" \
32 -e "s|^INCDIR=.*|&/mosml|" \
33 -e "s|^(DOCDIR=.*)/.*|\1/share/doc/$pkgname|" \
34 -e "s|^(TOOLDIR=.*)/.*|\1/lib/$pkgname|" \
35 -i "$srcdir/mosml/src/Makefile.inc"
37 -e "s|^.*config.*include.*config|#&|" \
38 -i "$srcdir/mosml/src/Makefile"
41 echo '#!/usr/bin/camlrunm' > "$pkgdir/usr/lib/$pkgname/header"
42 for i in mosml mosmlc mosmllex; do \
44 -e "s|^(stdlib=).*|\1/usr/lib/$pkgname|" \
45 -e "s|^(mosmlbin=).*|\1/usr/bin|" \
46 -i "$pkgdir/usr/bin/$i"; \
50 # vim:set ts=2 sw=2 et: