[arch-commits] Commit in ocaml-biniou/trunk (PKGBUILD)

Bruno Pagani archange at archlinux.org
Mon Oct 29 16:02:19 UTC 2018


    Date: Monday, October 29, 2018 @ 16:02:18
  Author: archange
Revision: 399439

upgpkg: ocaml-biniou 1.2.0-3

Modified:
  ocaml-biniou/trunk/PKGBUILD

----------+
 PKGBUILD |   17 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-10-29 15:55:20 UTC (rev 399438)
+++ PKGBUILD	2018-10-29 16:02:18 UTC (rev 399439)
@@ -3,7 +3,7 @@
 _pkgname=biniou
 pkgname=ocaml-${_pkgname}
 pkgver=1.2.0
-pkgrel=2
+pkgrel=3
 pkgdesc="An optimized parsing and printing library for JSON"
 arch=('x86_64')
 url="https://github.com/mjambon/${_pkgname}"
@@ -10,7 +10,7 @@
 license=('BSD')
 options=('!strip' 'staticlibs')
 depends=('ocaml-easy-format')
-makedepends=('ocaml-findlib' 'dune' 'opam')
+makedepends=('dune')
 source=(${pkgname}-${pkgver}.tar.gz::"${url}/archive/v${pkgver}.tar.gz")
 sha256sums=('d939a9d58660201738c3d22ad5b7976deb2917b22591a07525807bb741357d36')
 
@@ -26,14 +26,9 @@
 
 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
-
+    # Work around install command
+    dune install --prefix="${pkgdir}"/usr/ --libdir="${pkgdir}$(ocamlfind printconf destdir)"
+    rm -r "${pkgdir}"/usr/doc
     # Install LICENSE
-    install -Dm644 "${srcdir}"/opam/system/doc/${_pkgname}/LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+    install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
 }



More information about the arch-commits mailing list