Date: Wednesday, February 14, 2018 @ 00:03:57 Author: archange Revision: 293920
Initial addition of ocaml-easyformat to [community] Added: ocaml-easyformat/ ocaml-easyformat/repos/ ocaml-easyformat/trunk/ ocaml-easyformat/trunk/PKGBUILD ----------+ PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) Added: ocaml-easyformat/trunk/PKGBUILD =================================================================== --- ocaml-easyformat/trunk/PKGBUILD (rev 0) +++ ocaml-easyformat/trunk/PKGBUILD 2018-02-14 00:03:57 UTC (rev 293920) @@ -0,0 +1,39 @@ +# Maintainer: Bruno Pagani <[email protected]> + +_pkgname=easy-format +pkgname=ocaml-${_pkgname} +pkgver=1.3.1 +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=('glibc') +makedepends=('ocaml-findlib' 'dune' 'opam') +source=(${pkgname}-${pkgver}.tar.gz::"${url}/archive/v${pkgver}.tar.gz") +sha256sums=('489d55ea5de171cea2d7e2114bcd5cebd1fcbf89f839fbf3757769507502e1f0') + +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/easy-format/LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/ +}
