updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / mlton-bin / PKGBUILD
blob5bc8cd6ee6b9379e9064615d5d41f45f4e0bc4df
1 # Maintainer: Ben Darwin <map toEnum [98,99,100,97,114,119,105,110,64,103,109,97,105,108,46,99,111,109]>
3 pkgname=mlton-bin
4 pkgver=20100608
5 pkgrel=2
6 pkgdesc="binary package for the MLton whole-program, optimizing SML compiler"
7 arch=('i686' 'x86_64')
8 url="http://mlton.org/"
9 license=('custom')       # BSD like: http://mlton.org/License
10 depends=('perl')
11 provides=('sml' 'mlton')
12 conflicts=()
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')
24 package() {
25   cd $srcdir
27   PREFIXDIR="usr/"
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: