1 # Maintainer: Sergei Lebedev <superbobry@gmail.com>
2 # Contributor: Nicolas Pouillard <nicolas(dot)pouillard(at)gmail(dot)com>
4 pkgname=ocaml-fieldslib
7 pkgdesc="OCaml syntax extension for folding over record fields."
9 url="http://ocaml.janestcapital.com/?q=node/13"
10 # LGPL + linking exception
12 depends=('ocaml' 'ocaml-type-conv')
13 makedepends=('ocaml-findlib')
14 source=(http://www.janestreet.com/ocaml/${pkgname/ocaml-/}-$pkgver.tar.gz)
15 md5sums=('f2ed8e1b485881405dba601ffd87112b')
16 options=(!strip !makeflags)
19 cd "$srcdir/${pkgname/ocaml-/}-$pkgver"
21 ocaml setup.ml -configure --prefix /usr --destdir ${pkgdir}
22 ocaml setup.ml -build || return 1
26 cd "$srcdir/${pkgname/ocaml-/}-$pkgver"
28 export OCAMLFIND_DESTDIR="$pkgdir$(ocamlfind printconf destdir)"
30 mkdir -p $OCAMLFIND_DESTDIR
32 install -Dm 644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
35 # vim:set ts=2 sw=2 et: