From 3d222de3f9bc79dbc79b7831b170e1e87e33ebbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20DESBRI=C3=88RES?= Date: Thu, 5 Jun 2014 20:27:16 +0200 Subject: ocaml-lwt --- pcr/ocaml-lwt/PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 pcr/ocaml-lwt/PKGBUILD diff --git a/pcr/ocaml-lwt/PKGBUILD b/pcr/ocaml-lwt/PKGBUILD new file mode 100644 index 000000000..d6c5e6ae5 --- /dev/null +++ b/pcr/ocaml-lwt/PKGBUILD @@ -0,0 +1,50 @@ +# Contributor (Arch) : Serge Zirukin +# Contributor (Arch) : Sergei Lebedev +# Maintainer (Parabola) : Aurélien DESBRIÈRES + +pkgname="ocaml-lwt" +pkgver=2.4.4 +pkgrel=1 +pkgdesc="A library for cooperative threads in OCaml" +arch=('i686' 'x86_64') +url="http://ocsigen.org/lwt/" +license=('LGPL') +depends=('ocaml>=3.12.0' 'ocaml-compiler-libs' + 'ocaml-react' 'ocaml-text' 'ocaml-ssl' 'libev' 'glibc') +makedepends=('ocaml-findlib') +source=(https://github.com/ocsigen/lwt/archive/$pkgver.tar.gz) +#source=(http://ocsigen.org/download/lwt-$pkgver.tar.gz) +options=(!strip !makeflags staticlibs) +build() { + cd "$srcdir/${pkgname/ocaml-/}-$pkgver" + + echo ': use_compiler_libs' >> _tags + # What requires what? + # --enable-glib glibc + # --enable-react ocaml-react + # --enable-ssl ocaml-ssl + # --enable-text ocaml-text + # --enable-toplevel ocaml-compiler-libs + + ./configure --enable-react \ + --enable-glib \ + --enable-ssl \ + --enable-text \ + --enable-toplevel \ + --disable-debug \ + --prefix /usr \ + --destdir $pkgdir + make || return 1 +} + + +package() { + cd "$srcdir/${pkgname/ocaml-/}-$pkgver" + + export OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)" + + mkdir -p "$OCAMLFIND_DESTDIR/stublibs" + make install + install -Dm 644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE +} -- cgit v1.2.3-2-g168b