1 # Maintainer: Sergei Lebedev <superbobry@gmail.com>
2 # Contributor: Sylvester Johansson <scj(at)archlinux(dot)us>
3 # Contributor: Nicolas Pouillard <nicolas(dot)pouillard(at)gmail(dot)com>
7 pkgdesc="binary protocol generator for OCaml"
9 url="https://forge.ocamlcore.org/projects/bin-prot"
11 depends=('ocaml' 'ocaml-type-conv>=3.0.4')
12 makedepends=('ocaml-findlib')
13 source=(http://forge.ocamlcore.org/frs/download.php/724/bin-prot-$pkgver.tar.gz)
14 md5sums=('26288c780ffee9a7199613d75762a1fc')
15 options=(!strip !makeflags)
18 cd "$srcdir/bin-prot-$pkgver"
19 make CONFIGUREFLAGS="--prefix /usr --destdir $pkgdir --disable-tests" build
23 cd "$srcdir/bin-prot-$pkgver"
24 export OCAMLFIND_DESTDIR="${pkgdir}$(ocamlfind printconf destdir)"
25 install -dm 755 "$OCAMLFIND_DESTDIR/stublibs"
27 install -Dm 644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE