updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / ocaml-lwt / PKGBUILD
bloba1f056c9407803728fb94a2c643043dc4325eb17
1 # Maintainer: Sergei Lebedev <superbobry@gmail.com
2 # Contributor: serp <serp256 at gmail dot com>
3 pkgname="ocaml-lwt"
4 pkgver=2.3.2
5 pkgrel=1
6 pkgdesc="A library for cooperative threads in OCaml"
7 arch=('i686' 'x86_64')
8 url="http://ocsigen.org/lwt/"
9 license=('LGPL')
10 depends=('ocaml>=3.12.0' 'ocaml-compiler-libs'
11          'ocaml-react' 'ocaml-text' 'ocaml-ssl' 'libev' 'glibc')
12 makedepends=('ocaml-findlib')
13 source=(http://ocsigen.org/download/lwt-$pkgver.tar.gz)
14 md5sums=('d1b4a8c1ad320c8f7876a8bff157d2d3')
15 options=(!strip !makeflags)
17 build() {
18   cd "$srcdir/${pkgname/ocaml-/}-$pkgver"
20   # What requires what?
21   # --enable-glib      glibc
22   # --enable-react     ocaml-react
23   # --enable-ssl       ocaml-ssl
24   # --enable-text      ocaml-text
25   # --enable-toplevel  ocaml-compiler-libs
27   ./configure --enable-react \
28               --enable-glib \
29               --enable-ssl \
30               --enable-text \
31               --enable-toplevel \
32               --prefix /usr \
33               --destdir $pkgdir
34   make || return 1
38 package() {
39   cd "$srcdir/${pkgname/ocaml-/}-$pkgver"
41   export OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)"
43   mkdir -p "$OCAMLFIND_DESTDIR/stublibs"
44   make install
45   install -Dm 644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE