summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/ocaml-react/PKGBUILD17
1 files changed, 11 insertions, 6 deletions
diff --git a/pcr/ocaml-react/PKGBUILD b/pcr/ocaml-react/PKGBUILD
index fe4472245..f58b34626 100644
--- a/pcr/ocaml-react/PKGBUILD
+++ b/pcr/ocaml-react/PKGBUILD
@@ -9,21 +9,22 @@
_pkgname=react
pkgname=ocaml-${_pkgname}
-pkgver=1.2.0
-pkgrel=3
+pkgver=1.2.1
+pkgrel=1
pkgdesc="An OCaml module for functional reactive programming"
-arch=('i686' 'x86_64' 'armv7h')
+arch=('i686' 'x86_64')
+arch+=('armv7h')
url="http://erratique.ch/software/react"
license=('BSD')
depends=('ocaml')
-makedepends=('ocamlbuild' 'ocaml-findlib' 'opam')
+makedepends=('ocamlbuild' 'ocaml-findlib' 'ocaml-topkg' 'opam')
source=("http://erratique.ch/software/${_pkgname}/releases/${_pkgname}-${pkgver}.tbz")
-md5sums=('f071a1308b6cad131c55cda8677823c3')
+md5sums=('ce1454438ce4e9d2931248d3abba1fcc')
build() {
cd "${srcdir}/${_pkgname}-${pkgver}"
- ocaml pkg/build.ml native=true native-dynlink=true
+ ocaml pkg/pkg.ml build
}
package() {
@@ -32,4 +33,8 @@ package() {
opam-installer --prefix=${pkgdir}/usr \
--libdir=${pkgdir}$(ocamlc -where) \
--docdir=${pkgdir}/usr/share/doc
+
+ install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
+ mv "${pkgdir}/usr/share/doc/react/LICENSE.md" \
+ "${pkgdir}/usr/share/licenses/${pkgname}/"
}