updated on Wed Jan 11 08:01:35 UTC 2012
[aur-mirror.git] / ocaml-async / PKGBUILD
blobfd824db96d568782dbb2f8c6137e9ed434a37bf3
1 # Maintainer: Sergei Lebedev <superbobry@gmail.com>
3 pkgname=ocaml-async
4 pkgver=107.01
5 pkgrel=1
6 pkgdesc="Jane Street's asynchronous execution library for OCaml"
7 arch=('i686' 'x86_64')
8 license=('LGPL')
9 depends=('ocaml>=3.12'
10          'ocaml-sexplib'
11          'ocaml-fieldslib'
12          'ocaml-bin-prot'
13          'ocaml-res'
14          'ocaml-core')
15 makedepends=('ocaml-findlib')
16 options=(!strip !makeflags)
17 url="http://ocaml.janestcapital.com/?q=node/13"
18 source=(http://www.janestreet.com/ocaml/async-$pkgver.tar.gz)
19 md5sums=('7c98157433916789e96b88cc6f1f4a61')
21 build() {
22   cd "$srcdir/${pkgname/ocaml-/}-$pkgver"
24   ocaml setup.ml -configure --prefix /usr --destdir $pkgdir
25   ocaml setup.ml -build || return 1
28 package() {
29   cd "$srcdir/${pkgname/ocaml-/}-$pkgver"
31   export OCAMLFIND_DESTDIR="$pkgdir$(ocamlfind printconf destdir)"
33   mkdir -p "$OCAMLFIND_DESTDIR"
35   ocaml setup.ml -install
36   install -Dm 644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE