1 # Maintainer: Serge Ziryukin <ftrvxmtrx@gmail.com>
3 pkgname=ocaml-extunix-git
6 pkgdesc="Thin bindings to various low-level system APIs which are not covered by Unix module"
8 url=("http://extunix.forge.ocamlcore.org")
9 # LGPL + linking exception
11 depends=('ocaml' 'ocaml-findlib')
12 makedepends=('ocaml' 'ocaml-ounit')
13 provides=('ocaml-extunix')
14 conflicts=('ocaml-extunix')
16 _gitroot="http://git.ocamlcore.org/extunix/extunix.git"
22 msg "Connecting to GIT server..."
24 if [ -d "$srcdir/$_gitname" ]; then
25 cd $_gitname && git pull origin
26 msg "The local files are updated."
31 msg "GIT checkout done or server timeout"
32 msg "Starting make..."
34 cp -rf "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35 cd "$srcdir/$_gitname-build"
37 ./configure --docdir "$pkgdir/usr/share/doc/ocaml-extunix" || return 1
38 make all doc || return 1
42 destdir="${pkgdir}$(ocamlfind printconf destdir)"
44 cd "$srcdir/$_gitname-build"
46 mkdir -p "${destdir}/stublibs"
47 OCAMLFIND_DESTDIR="${destdir}" make install || return 1