1 # Maintainer: Serge Ziryukin <ftrvxmtrx@gmail.com>
3 pkgname=cairo-ocaml-git
6 pkgdesc="OCaml bindings for cairo"
8 url="http://cairographics.org/cairo-ocaml/"
10 depends=('ocaml' 'cairo' 'lablgtk2' 'libsvg-cairo')
12 provides=('cairo-ocaml')
14 _gitroot="git://anongit.freedesktop.org/cairo-ocaml.git"
15 _gitname="cairo-ocaml"
20 msg "Connecting to GIT server..."
22 if [ -d "$srcdir/$_gitname" ]; then
23 cd $_gitname && git pull origin
24 msg "The local files are updated."
29 msg "GIT checkout done or server timeout"
30 msg "Starting make..."
32 cp -rf "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33 cd "$srcdir/$_gitname-build"
36 aclocal -I support || return 1
38 ./configure --prefix=/usr || return 1
41 cp /usr/lib/ocaml/lablgtk2/pango.ml* src/
42 cp /usr/lib/ocaml/lablgtk2/gaux.ml* src/
48 make DESTDIR="$pkgdir" install || return 1