1 # Maintainer: Magnus Therning <magnus@therning.org>
2 # Contributor: Sergei Lebedev <superbobry@gmail.com>
6 pkgdesc="OCaml data notation"
8 url="https://forge.ocamlcore.org/projects/odn"
9 # LGPL + linking exception
11 depends=('ocaml' 'ocaml-type-conv' 'ocaml-fileutils')
12 makedepends=('ocaml-findlib')
13 source=(https://forge.ocamlcore.org/frs/download.php/638/ocaml-data-notation-$pkgver.tar.gz
14 type-conv-compat.patch)
15 md5sums=('32d916776f37c6439d52a0adf34da922'
16 '68fcc2b59f1ac15335916d223511e21d')
20 cd ${srcdir}/ocaml-data-notation-${pkgver}
21 patch -Np0 < $startdir/type-conv-compat.patch
22 ocaml setup.ml -configure --prefix /usr --destdir ${pkgdir} --disable-tests
27 cd ${srcdir}/ocaml-data-notation-${pkgver}
28 OCAMLFIND_DESTDIR=${pkgdir}$(ocamlfind printconf destdir)
29 mkdir -p $OCAMLFIND_DESTDIR
30 OCAMLFIND_DESTDIR=$OCAMLFIND_DESTDIR ocaml setup.ml -install