updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / smlnj / PKGBUILD
bloba769c32ebce574ba56ffcc008f76c97d70566166
1 pkgname=smlnj
2 pkgver=110.72
3 pkgrel=1
4 pkgdesc="Standard ML of New Jersey is a compiler for the Standard ML '97 programming language"
5 url="http://www.smlnj.org/"
6 license="BSD"
7 arch=(i686 x86_64)
8 depends=()
9 makedepends=()
10 conflicts=()
11 replaces=()
12 backup=()
13 provides=(sml)
14 install=
15 # WOW this is a bad hack since the source .tgz don't have a version
16 # and so makepkg picksup old versions.
17 SRCDEST="$SRCDEST/$pkgname-$pkgver"
18 echo BAD HACK:  mkdir -p $SRCDEST
19 mkdir -p $SRCDEST
21 source=(
22     http://smlnj.cs.uchicago.edu/dist/working/$pkgver/MLRISC.tgz
23     http://smlnj.cs.uchicago.edu/dist/working/$pkgver/boot.x86-unix.tgz
24     http://smlnj.cs.uchicago.edu/dist/working/$pkgver/ckit.tgz
25     http://smlnj.cs.uchicago.edu/dist/working/$pkgver/cm.tgz
26     http://smlnj.cs.uchicago.edu/dist/working/$pkgver/cml.tgz
27     http://smlnj.cs.uchicago.edu/dist/working/$pkgver/config.tgz
28     http://smlnj.cs.uchicago.edu/dist/working/$pkgver/eXene.tgz
29     http://smlnj.cs.uchicago.edu/dist/working/$pkgver/ml-burg.tgz
30     http://smlnj.cs.uchicago.edu/dist/working/$pkgver/ml-lex.tgz
31     http://smlnj.cs.uchicago.edu/dist/working/$pkgver/ml-yacc.tgz
32     http://smlnj.cs.uchicago.edu/dist/working/$pkgver/runtime.tgz
33     http://smlnj.cs.uchicago.edu/dist/working/$pkgver/smlnj-c.tgz
34     http://smlnj.cs.uchicago.edu/dist/working/$pkgver/smlnj-lib.tgz
37 build() {
38   SMLNJ_DEST="$startdir/pkg/usr/lib/smlnj"
39   SMLNJ_REALDEST="/usr/lib/smlnj"
40   unset SMLNJ_HOME
41   cd $startdir/src/
42   mkdir -p src/runtime/objs
43   cp $startdir/mk.x86-dragonfly src/runtime/objs
44   cat $startdir/*.patch | patch -p0
45   ./config/install.sh || return 1
46   mkdir -p $SMLNJ_DEST/bin/{.run,.heap}
48   cp bin/{.run-sml,.link-sml,.arch-n-opsys,ml-makedepend,ml-build} ${SMLNJ_DEST}/bin
49   cp bin/.run/* ${SMLNJ_DEST}/bin/.run
50   cp bin/.heap/* ${SMLNJ_DEST}/bin/.heap
52   for i in ml-lex ml-yacc sml ml-burg
53     do
54     ln -s .run-sml ${SMLNJ_DEST}/bin/$i
55   done
57   cp -Rp lib ${SMLNJ_DEST}
59   mkdir $startdir/pkg/usr/bin
61   ln -s ${SMLNJ_REALDEST}/bin/ml-build $startdir/pkg/usr/bin
62   ln -s ${SMLNJ_REALDEST}/bin/ml-burg $startdir/pkg/usr/bin
63   ln -s ${SMLNJ_REALDEST}/bin/ml-lex $startdir/pkg/usr/bin
64   ln -s ${SMLNJ_REALDEST}/bin/ml-makedepend $startdir/pkg/usr/bin
65   ln -s ${SMLNJ_REALDEST}/bin/ml-yacc $startdir/pkg/usr/bin
66   ln -s ${SMLNJ_REALDEST}/bin/sml $startdir/pkg/usr/bin
68   mkdir -p $startdir/pkg/etc/profile.d
69   echo -e export SMLNJ_HOME=$SMLNJ_REALDEST > $startdir/pkg/etc/profile.d/smlnj.sh
70   chmod +x $startdir/pkg/etc/profile.d/smlnj.sh
72 md5sums=('ba7ff111da7219959a95f5bc7e5e00a3'
73          'c329a08fecdec6a8da66ad08b0fc22da'
74          '557447181a8d632a0b835e4d99db9670'
75          '068df4d2ce905eb390b427f041970e9a'
76          '1fd7c7d8f6bdb6ab59ff220408b5a201'
77          '97503a4e749a5e72ff975f3883688105'
78          'e6c65d62fb9b7a1f375bc6ff796deb80'
79          '6cae04314ceb231da5d02f4cd3da2faa'
80          '06ce7222145f80e532de3a395c394c9c'
81          '4e8013aa1d963348e3d44fdde7fb3b3e'
82          '1c3a5a2e6805b53032b68f83b80a3e6d'
83          '82cf4a5d3d91f28de0c97a8c41a4bd20'
84          '9b36d7bfc469a7a77b633c547b1fb9b1')