updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / ocaml-experimental / PKGBUILD
blob2fa6417db12f3492668cb8407a6013560a741dbb
1 # Maintainer: Sergei Lebedev <superbobry@gmail.com>
3 pkgname=('ocaml-experimental')
4 pkgver=3.12.1+ocamlnatjit2
5 pkgrel=1
6 pkgdesc="OCaml with some experimental features"
7 arch=('i686' 'x86_64')
8 license=('LGPL2' 'custom: QPL-1.0')
9 url="http://benediktmeurer.de/ocaml-experimental/"
10 depends=('gdbm')
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')
20 build() {
21   cd "${srcdir}/ocaml-${pkgver}"
22   ./configure -prefix /usr
23   make world.opt ocamlnat
26 package() {
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}
42   # Install license
43   install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
44   install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/"