summaryrefslogtreecommitdiff
path: root/pcr/ocaml-react
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2015-04-30 04:34:38 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2015-04-30 04:34:38 -0500
commit4c79c486e683d98e1904f537da41ad77d1b2c839 (patch)
tree8cbb6e11a483ebc3332c1669c212f6b050651001 /pcr/ocaml-react
parente6e3a6c4a29d19a623e1c4a9dabbb2c68d131561 (diff)
downloadabslibre-4c79c486e683d98e1904f537da41ad77d1b2c839.tar.gz
abslibre-4c79c486e683d98e1904f537da41ad77d1b2c839.tar.bz2
abslibre-4c79c486e683d98e1904f537da41ad77d1b2c839.zip
ocaml-react-1.2.0-2: updating version
Diffstat (limited to 'pcr/ocaml-react')
-rw-r--r--pcr/ocaml-react/PKGBUILD30
1 files changed, 17 insertions, 13 deletions
diff --git a/pcr/ocaml-react/PKGBUILD b/pcr/ocaml-react/PKGBUILD
index 42dee85de..2003d912c 100644
--- a/pcr/ocaml-react/PKGBUILD
+++ b/pcr/ocaml-react/PKGBUILD
@@ -1,28 +1,32 @@
+# Contributor (Arch) : Jakob Gahde <j5lx@fmail.co.uk>
# 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
+_pkgname=react
+pkgname=ocaml-${_pkgname}
+pkgver=1.2.0
pkgrel=2
pkgdesc="An OCaml module for functional reactive programming"
-arch=('i686' 'x86_64' 'mips64el')
+arch=('i686' 'x86_64')
url="http://erratique.ch/software/react"
-license=('BSD')
+license=('BSD3')
depends=('ocaml')
-makedepends=('ocaml-findlib')
-source=(http://erratique.ch/software/react/releases/react-$pkgver.tbz)
+makedepends=('ocaml-findlib' 'opam')
+source=(http://erratique.ch/software/${_pkgname}/releases/${_pkgname}-${pkgver}.tbz)
+md5sums=('f071a1308b6cad131c55cda8677823c3')
build() {
- cd "$srcdir/react-$pkgver"
- ocaml setup.ml -configure --prefix /usr --destdir $pkgdir --disable-tests
- ocaml setup.ml -build
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+
+ ocaml pkg/build.ml native=true native-dynlink=true
}
package() {
- cd "$srcdir/react-$pkgver"
- export OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)"
- install -dm755 "$OCAMLFIND_DESTDIR"
- ocaml setup.ml -install
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+
+ opam-installer --prefix=${pkgdir}/usr \
+ --libdir=${pkgdir}$(ocamlc -where) \
+ --docdir=${pkgdir}/usr/share/doc
}