summaryrefslogtreecommitdiff
path: root/pcr/ocaml-lwt/PKGBUILD
diff options
context:
space:
mode:
authorAurélien DESBRIÈRES <aurelien@hackers.camp>2014-06-05 20:27:16 +0200
committerAurélien DESBRIÈRES <aurelien@hackers.camp>2014-06-05 20:27:16 +0200
commit3d222de3f9bc79dbc79b7831b170e1e87e33ebbd (patch)
tree71e9516fb589eafbae9c9970089f057e8b50ad64 /pcr/ocaml-lwt/PKGBUILD
parent71f8ef63257115882fcdcd01bb27275d07549682 (diff)
ocaml-lwt
Diffstat (limited to 'pcr/ocaml-lwt/PKGBUILD')
-rw-r--r--pcr/ocaml-lwt/PKGBUILD50
1 files changed, 50 insertions, 0 deletions
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 <ftrvxmtrx@gmail.com>
+# Contributor (Arch) : Sergei Lebedev <superbobry@gmail.com
+# Contributor (Arch) : serp <serp256 at gmail dot com>
+# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp>
+
+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 '<src/top/*.*>: 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
+}