[arch-commits] Commit in ocaml-yojson/trunk (PKGBUILD)
Bruno Pagani
archange at archlinux.org
Wed Nov 28 00:03:01 UTC 2018
Date: Wednesday, November 28, 2018 @ 00:02:52
Author: archange
Revision: 410263
Update to latest dune
Modified:
ocaml-yojson/trunk/PKGBUILD
----------+
PKGBUILD | 15 ++++-----------
1 file changed, 4 insertions(+), 11 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-11-27 23:53:30 UTC (rev 410262)
+++ PKGBUILD 2018-11-28 00:02:52 UTC (rev 410263)
@@ -3,7 +3,7 @@
_pkgname=yojson
pkgname=ocaml-${_pkgname}
pkgver=1.4.1
-pkgrel=2
+pkgrel=3
pkgdesc="An optimized parsing and printing library for JSON"
arch=('x86_64')
url="https://github.com/mjambon/${_pkgname}"
@@ -26,14 +26,7 @@
package() {
cd ${_pkgname}-${pkgver}
-
- # Initialize OPAM, this should be removed once opam is “removed” from dune
- export OPAMROOT="${srcdir}"/opam
- opam init -n
-
- # Work around the install command
- make OCAMLFIND_DESTDIR="${pkgdir}$(ocamlfind printconf destdir)" install
-
- # Install LICENSE
- install -Dm644 "${srcdir}"/opam/system/doc/${_pkgname}/LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+ DESTDIR="${pkgdir}" dune install --prefix=/usr --libdir="$(ocamlfind printconf destdir)"
+ install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+ rm -r "${pkgdir}"/usr/doc
}
More information about the arch-commits
mailing list