updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / moscow-ml / PKGBUILD
blob28f94401cca73a3f0fc8a8afa6afcc79cd274ccf
1 # Maintainer: MaurĂ­cio CA <mauricio.antunes@gmail.com>
2 pkgname=moscow-ml
3 pkgver=2.01
4 pkgrel=2
5 pkgdesc="light-weight implementation of Standard ML"
6 arch=(i686 x86_64)
7 url="http://www.itu.dk/~sestoft/mosml.html"
8 license=('GPL')
9 groups=()
10 depends=()
11 makedepends=(perl gcc make autoconf sed)
12 optdepends=()
13 provides=()
14 conflicts=()
15 replaces=()
16 backup=()
17 options=()
18 install=
19 changelog=
20 source=('http://www.itu.dk/people/sestoft/mosml/mos201src.tar.gz'
21         'http://www.itu.dk/people/sestoft/mosml/gc_ctrl.c')
22 noextract=()
23 md5sums=('74aaaf988201fe92a9dbfbcb1e646f70'
24          'ebb714a2d45889f4ecc796a9add40bd6')
26 build() {
27   [ $CARCH=x86_64 ] && cp "$srcdir/gc_ctrl.c" "$srcdir/mosml/src/runtime/gc_ctrl.c"
28   cd "$srcdir/mosml/src"
29   sed -r \
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"
36   sed -r \
37       -e "s|^.*config.*include.*config|#&|" \
38       -i "$srcdir/mosml/src/Makefile"
39   make world
40   make install
41   echo '#!/usr/bin/camlrunm' > "$pkgdir/usr/lib/$pkgname/header"
42   for i in mosml mosmlc mosmllex; do \
43       sed -r \
44           -e "s|^(stdlib=).*|\1/usr/lib/$pkgname|" \
45           -e "s|^(mosmlbin=).*|\1/usr/bin|" \
46           -i "$pkgdir/usr/bin/$i"; \
47   done
50 # vim:set ts=2 sw=2 et: