1 # Maintainer: Ben Darwin <map toEnum [98,99,100,97,114,119,105,110,64,103,109,97,105,108,46,99,111,109]>
6 pkgdesc="binary package for the MLton whole-program, optimizing SML compiler"
8 url="http://mlton.org/"
9 license=('custom') # BSD like: http://mlton.org/License
11 provides=('sml' 'mlton')
14 if [ "${CARCH}" = 'x86_64' ]; then
15 source=("http://mlton.org/pages/Download/attachments/mlton-$pkgver-1.amd64-linux.static.tgz" "LICENSE")
16 md5sums=('546b8941c35a93df4866ef91129e0f35'
17 '9796787fcf04c08ddbe1ebbba0e35b94')
18 elif [ "${CARCH}" = 'i686' ]; then
19 source=("http://mlton.org/pages/Download/attachments/mlton-$pkgver-1.x86-linux.static.tgz" "LICENSE")
20 md5sums=('dc6101f8923b23cd2875a74e353f520e'
21 '9796787fcf04c08ddbe1ebbba0e35b94')
29 mkdir -p "$pkgdir/$PREFIXDIR/bin"
30 cp -av "$PREFIXDIR/bin" "$pkgdir/$PREFIXDIR"
32 mkdir -p "$pkgdir/$PREFIXDIR/lib"
33 cp -av "$PREFIXDIR/lib" "$pkgdir/$PREFIXDIR"
35 mkdir -p "$pkgdir/$PREFIXDIR/share"
36 cp -av "$PREFIXDIR/share" "$pkgdir/$PREFIXDIR"
38 mkdir -p "$pkgdir/$PREFIXDIR/share/man"
39 cp -av "$PREFIXDIR/man/" "$pkgdir/$PREFIXDIR/share/"
41 install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
44 # vim:set ts=2 sw=2 et: