# $Id: PKGBUILD 66793 2010-02-01 14:57:46Z giovanni $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>

pkgname=ocaml
pkgver=3.11.2
pkgrel=1
pkgdesc="A functional language with OO extensions"
arch=('i686' 'x86_64')
license=('LGPL2' 'custom: QPL-1.0')
url="http://caml.inria.fr/"
depends=('gdbm')
makedepends=('ncurses>=5.6-7')
optdepends=('ncurses: advanced ncurses features')
source=(http://caml.inria.fr/distrib/ocaml-3.11/$pkgname-$pkgver.tar.gz)
options=('!makeflags' '!emptydirs')

build() {
  cd $srcdir/$pkgname-$pkgver
  ./configure -prefix /usr \
              -no-tk
  make world.opt
  make PREFIX=$pkgdir/usr MANDIR=$pkgdir/usr/share/man install
   
# Save >10MB with this one, makepkg only strips debug symbols.
 find ${startdir}/pkg/usr/lib -type f -name '*.so.*' -exec strip --strip-unneeded {} \;

# install license
install -D -m 644 $startdir/src/$pkgname-$pkgver/LICENSE $startdir/pkg/usr/share/licenses/ocaml/LICENSE
}
md5sums=('9d0611245122ffbc8263735cae1da7fb')
