summaryrefslogtreecommitdiff
path: root/pcr/ocaml-react/PKGBUILD
blob: fe447224554b21377e119d3e2c4547bc06a03131 (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
29
30
31
32
33
34
35
# Maintainer (AUR): Jakob Gahde <j5lx@fmail.co.uk>
# Contributor (AUR): Serge Zirukin <ftrvxmtrx@gmail.com>
# Contributor (AUR): Sergei Lebedev <superbobry@gmail.com>
# Contributor (AUR): serp <serp 256 at gmail dot com>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>

# parabola changes and rationale:
#  no changes.

_pkgname=react
pkgname=ocaml-${_pkgname}
pkgver=1.2.0
pkgrel=3
pkgdesc="An OCaml module for functional reactive programming"
arch=('i686' 'x86_64' 'armv7h')
url="http://erratique.ch/software/react"
license=('BSD')
depends=('ocaml')
makedepends=('ocamlbuild' 'ocaml-findlib' 'opam')
source=("http://erratique.ch/software/${_pkgname}/releases/${_pkgname}-${pkgver}.tbz")
md5sums=('f071a1308b6cad131c55cda8677823c3')

build() {
  cd "${srcdir}/${_pkgname}-${pkgver}"

  ocaml pkg/build.ml native=true native-dynlink=true
}

package() {
  cd "${srcdir}/${_pkgname}-${pkgver}"

  opam-installer --prefix=${pkgdir}/usr \
    --libdir=${pkgdir}$(ocamlc -where) \
    --docdir=${pkgdir}/usr/share/doc
}