Date: Wednesday, February 14, 2018 @ 00:32:40
  Author: archange
Revision: 293936

Initial addition of ocaml-biniou to [community]

Added:
  ocaml-biniou/
  ocaml-biniou/repos/
  ocaml-biniou/trunk/
  ocaml-biniou/trunk/PKGBUILD

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

Added: ocaml-biniou/trunk/PKGBUILD
===================================================================
--- ocaml-biniou/trunk/PKGBUILD                         (rev 0)
+++ ocaml-biniou/trunk/PKGBUILD 2018-02-14 00:32:40 UTC (rev 293936)
@@ -0,0 +1,39 @@
+# Maintainer: Bruno Pagani <archa...@archlinux.org>
+
+_pkgname=biniou
+pkgname=ocaml-${_pkgname}
+pkgver=1.2.0
+pkgrel=1
+pkgdesc="An optimized parsing and printing library for JSON"
+arch=('x86_64')
+url="https://github.com/mjambon/${_pkgname}";
+license=('BSD')
+options=('!strip' 'staticlibs')
+depends=('ocaml-easy-format')
+makedepends=('ocaml-findlib' 'dune' 'opam')
+source=(${pkgname}-${pkgver}.tar.gz::"${url}/archive/v${pkgver}.tar.gz")
+sha256sums=('d939a9d58660201738c3d22ad5b7976deb2917b22591a07525807bb741357d36')
+
+build() {
+    cd ${_pkgname}-${pkgver}
+    make all
+}
+
+check() {
+    cd ${_pkgname}-${pkgver}
+    make test
+}
+
+package() {
+    cd ${_pkgname}-${pkgver}
+
+    # Initialize OPAM
+    export OPAMROOT="${srcdir}"/opam
+    opam init -n
+
+    # Work around missing install command
+    OCAMLFIND_DESTDIR="${pkgdir}$(ocamlfind printconf destdir)" jbuilder 
install
+
+    # Install LICENSE
+    install -Dm644 "${srcdir}"/opam/system/doc/${_pkgname}/LICENSE -t 
"${pkgdir}"/usr/share/licenses/${pkgname}/
+}

Reply via email to