1 # OldOldContributor: tochiro@no.spam.mail.berlios.de
2 # OldContributor: Andreas W. Hauser <andy-aur@splashground.de>
3 # Contributor: Brian De Wolf <arch@bldewolf.com>
8 pkgdesc="an open-source, whole-program, optimizing Standard ML compiler"
9 url="http://mlton.org/"
10 license="MLTON" # BSD like: http://mlton.org/License
18 source=(http://mlton.org/pages/Download/attachments/$pkgname-$pkgver-1.src.tgz \
19 http://mlton.org/pages/Download/attachments/$pkgname-$pkgver-1.x86-linux.static.tgz)
20 md5sums=('1c365ddefa6ba24e485b028d3ba58136'
21 'dc6101f8923b23cd2875a74e353f520e')
23 if [ "${CARCH}" = "x86_64" ]; then
24 source=(http://mlton.org/pages/Download/attachments/$pkgname-$pkgver-1.src.tgz \
25 http://mlton.org/pages/Download/attachments/$pkgname-$pkgver-1.amd64-linux.static.tgz)
26 md5sums=('1c365ddefa6ba24e485b028d3ba58136'
27 '546b8941c35a93df4866ef91129e0f35')
32 cd $startdir/src/$pkgname-$pkgver
33 sed -i -e "s/lib=.*/lib='${startdir//\//\\/}'\/src\/usr\/lib\/mlton/" $startdir/src/usr/bin/mlton || return 1
34 PATH=$PATH:$startdir/src/usr/bin make all-no-docs
35 make DESTDIR=$startdir/pkg install-no-docs