1 # Maintainer: Sergei Lebedev <superbobry@gmail.com>
3 pkgname=('ocaml-experimental')
4 pkgver=3.12.1+ocamlnatjit2
6 pkgdesc="OCaml with some experimental features"
8 license=('LGPL2' 'custom: QPL-1.0')
9 url="http://benediktmeurer.de/ocaml-experimental/"
11 conflicts=('ocaml' 'ocaml-compiler-libs')
12 provides=('ocaml==3.12.1' 'ocaml-compiler-libs==3.12.1')
13 makedepends=('tk' 'ncurses>=5.6-7' 'libx11')
14 optdepends=('ncurses: advanced ncurses features'
15 'tk: advanced tk features')
16 source=(http://benediktmeurer.de/files/source/ocaml-${pkgver}.tar.bz2)
17 md5sums=('159c293513ad70879009f922ed95070a')
18 options=('!makeflags' '!emptydirs')
21 cd "${srcdir}/ocaml-${pkgver}"
22 ./configure -prefix /usr
23 make world.opt ocamlnat
27 cd "${srcdir}/ocaml-${pkgver}"
28 make PREFIX="${pkgdir}/usr" MANDIR="${pkgdir}/usr/share/man" install
30 # Save >10MB with this one, makepkg only strips debug symbols.
31 #find ${startdir}/pkg/usr/lib -type f -name '*.so.*' -exec strip --strip-unneeded {} \;
33 # Install compiler libraries
34 local compiler_libs="${pkgdir}/usr/lib/ocaml/compiler-libs"
35 mkdir -p "$compiler_libs"/{parsing,typing,utils}
36 cp parsing/*.{cmi,cmo,cmx,ml,mli,mll,o} "$compiler_libs"/parsing
37 cp typing/*.{cmi,cmo,cmx,ml,mli,o} "$compiler_libs"/typing
38 cp utils/*.{cmi,cmo,cmx,ml,mli,o} "$compiler_libs"/utils
39 # duplicated by installation
40 rm -f "$compiler_libs"/typing/outcometree.{cmi,mli}
43 install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
44 install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/"