1 #Contributor: Sergey Plaksin <radzevich.belevich at gmail.com>
3 pkgname=ocaml-json-wheel
6 pkgdesc="This is an OCaml library which reads and writes data in the JSON format (JavaScript Object Notation)"
8 url="http://martin.jambon.free.fr/json-wheel.html"
10 depends=('ocaml>=3.10' 'ocaml-findlib' 'ocamlnet>=2.2.9')
11 source=(http://martin.jambon.free.fr/json-wheel-$pkgver.tar.gz)
12 md5sums=('7c2fcface88bc94d1cc8e83309d38994')
15 cd $srcdir/json-wheel-$pkgver
19 mkdir -p $pkgdir$(ocamlfind printconf destdir)/$pkgname
21 make OCAMLFIND_DESTDIR="$pkgdir$(ocamlfind printconf destdir)" BINDIR="$pkgdir/usr/bin" install || return 1
22 mkdir -p $pkgdir/usr/share/doc/$pkgname
23 cp -r html/* $pkgdir/usr/share/doc/$pkgname/
24 install -Dm 644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE