2 # Maintainer: Nicolas Hureau <kalenz@lse.epita.fr>
7 pkgdesc="A functional language with OO extensions - SVN trunk"
9 url="http://caml.inria.fr/"
10 license=('LGPL2' 'custom: QPL-1.0')
13 makedepends=('tk' 'ncurses>=5.6-7' 'libx11' 'gcc' 'subversion')
14 optdepends=('ncurses: advanced ncurses features' 'tk: advanced tk features')
25 _svntrunk="http://caml.inria.fr/svn/ocaml/trunk"
31 if [ -d $_svnmod/.svn ]; then
32 (cd $_svnmod && svn up -r $pkgver)
34 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
37 msg "SVN checkout done or server timeout"
38 msg "Starting make..."
40 rm -rf "$srcdir/$_svnmod-build"
41 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
42 cd "$srcdir/$_svnmod-build"
45 ./configure -prefix /usr
46 make world.opt || return 1
50 cd "$srcdir/$_svnmod-build"
52 install -D -m 644 LICENSE $pkgdir/usr/share/licenses/ocaml/LICENSE
53 make PREFIX=$pkgdir/usr MANDIR=$pkgdir/usr/share/man install || return 1
55 # Save >10MB with this one, makepkg only strips debug symbols.
56 find $pkgdir/usr/lib -type f -name '*.so.*' -exec strip --strip-unneeded {} \;