summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurélien DESBRIÈRES <aurelien@hackers.camp>2014-06-05 20:18:41 +0200
committerAurélien DESBRIÈRES <aurelien@hackers.camp>2014-06-05 20:18:41 +0200
commit2c750c8a739d5e7797d8253052c63f06a751c2df (patch)
tree39f436efc8534ef298f8a8ed6890d1a750e78fd5
parentb42877cd9239f7f785197c470372905d393ab3b4 (diff)
ocaml-react
-rw-r--r--pcr/ocaml-react/PKGBUILD28
1 files changed, 28 insertions, 0 deletions
diff --git a/pcr/ocaml-react/PKGBUILD b/pcr/ocaml-react/PKGBUILD
new file mode 100644
index 000000000..513ff2acf
--- /dev/null
+++ b/pcr/ocaml-react/PKGBUILD
@@ -0,0 +1,28 @@
+# Contributor (Arch) : Serge Zirukin <ftrvxmtrx@gmail.com>
+# Contributor (Arch) : Sergei Lebedev <superbobry@gmail.com>
+# Contributor (Arch) : serp <serp 256 at gmail dot com>
+# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp>
+
+pkgname=ocaml-react
+pkgver=0.9.4
+pkgrel=2
+pkgdesc="An OCaml module for functional reactive programming"
+arch=('i686' 'x86_64')
+url="http://erratique.ch/software/react"
+license=('BSD')
+depends=('ocaml')
+makedepends=('ocaml-findlib')
+source=(http://erratique.ch/software/react/releases/react-$pkgver.tbz)
+
+build() {
+ cd "$srcdir/react-$pkgver"
+ ocaml setup.ml -configure --prefix /usr --destdir $pkgdir --disable-tests
+ ocaml setup.ml -build
+}
+
+package() {
+ cd "$srcdir/react-$pkgver"
+ export OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)"
+ install -dm755 "$OCAMLFIND_DESTDIR"
+ ocaml setup.ml -install
+}