1 # Maintainer: Serge Ziryukin <ftrvxmtrx@gmail.com>
6 pkgdesc="Real-time profiling tool"
7 url="http://ocamlviz.forge.ocamlcore.org/"
9 license=('LGPL2' 'custom: QPL-1.0')
10 depends=('ocaml' 'lablgtk2' 'ocaml-cairo' 'graphviz')
11 makedepends=('subversion')
13 source=(no-icon.patch)
14 md5sums=('9e50cba0ca6f7739f51889f676ebd33b')
16 _svntrunk="svn://scm.ocamlcore.org/svn/ocamlviz/"
21 msg "Connecting to svn.forge.ocamlcore.org SVN server...."
22 if [ -d $_svnmod/.svn ]; then
23 cd $_svnmod && svn up -r $pkgver
25 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
27 msg "SVN checkout done or server timeout"
28 msg "Starting make..."
30 if [ -e "$srcdir"/$_svnmod-build ]; then
31 rm -rf "$srcdir"/$_svnmod-build
34 svn export "$srcdir"/$_svnmod "$srcdir"/$_svnmod-build
35 cd "$srcdir"/$_svnmod-build
36 patch -Np1 -i "$srcdir/no-icon.patch"
39 ./configure --prefix="$pkgdir/usr" || return 1
44 cd "$srcdir"/$_svnmod-build
45 ocamllib="$pkgdir/`ocamlc -v | tail -1 | cut -f 4 -d " "`"
46 mkdir -p "$ocamllib/camlp4"
47 make OCAMLLIB="$ocamllib" install || return 1
48 install -D -m 644 LICENSE $pkgdir/usr/share/licenses/ocamlviz/LICENSE