updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / mlton / PKGBUILD
blobcf8693dac44e3d029b901aa6bd6fe8e13c5b4a97
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>
5 pkgname=mlton
6 pkgver=20100608
7 pkgrel=1
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
11 depends=('bash')
12 makedepends=('patch')
13 conflicts=()
14 replaces=()
15 backup=()
16 arch=(i686 x86_64)
17 install=
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')
31 build() {
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