summaryrefslogtreecommitdiff
path: root/pcr/ocaml-react/PKGBUILD
blob: 42dee85ded2753dfcfbc6b44453cf3277bd4a3b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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' 'mips64el')
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
}