updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / ocaml-bin-prot / PKGBUILD
blob0a00f1a5a2863e677d11fac5b82220616eed3bb3
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>
4 pkgname=ocaml-bin-prot
5 pkgver=2.0.7
6 pkgrel=1
7 pkgdesc="binary protocol generator for OCaml"
8 arch=('i686' 'x86_64')
9 url="https://forge.ocamlcore.org/projects/bin-prot"
10 license=('LGPL')
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)
17 build () {
18   cd "$srcdir/bin-prot-$pkgver"
19   make CONFIGUREFLAGS="--prefix /usr --destdir $pkgdir --disable-tests" build
22 package () {
23   cd "$srcdir/bin-prot-$pkgver"
24   export OCAMLFIND_DESTDIR="${pkgdir}$(ocamlfind printconf destdir)"
25   install -dm 755 "$OCAMLFIND_DESTDIR/stublibs"
26   make install
27   install -Dm 644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE