updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / ocaml-cmdliner / PKGBUILD
blob5e64fa384f5377c15f5947771119face99ad6a54
1 # Maintainer: Sergei Lebedev <superbobry@gmail.com>
2 pkgname=ocaml-cmdliner
3 pkgver=0.9.0
4 pkgrel=1
5 pkgdesc="An OCaml module for declarative definition of command line interfaces."
6 arch=('i686' 'x86_64')
7 url="http://erratique.ch/software/cmdliner"
8 license=('BSD')
9 depends=('ocaml')
10 makedepends=('ocaml-findlib')
11 source=(http://erratique.ch/software/cmdliner/releases/cmdliner-$pkgver.tbz)
12 md5sums=('97d98d96a989a7e4ba4bddb6135131e0')
14 build() {
15   cd "$srcdir/cmdliner-$pkgver"
16   sh build
17   sh build doc
20 package() {
21   cd "$srcdir/cmdliner-$pkgver"
23   export OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)"
24   install -dm755 "$OCAMLFIND_DESTDIR"
25   INSTALLDIR="${OCAMLFIND_DESTDIR}/${pkgname/ocaml-/}" sh build install
27   install -dDm755 doc/ "$pkgdir/usr/share/doc/$pkgname/"