Add jbuilder to makedepends/remove ocamlbuild. Fix package() step by adding opam init.

This commit is contained in:
Eric Bailey 2018-01-26 08:07:01 -05:00
parent 1b6308f906
commit ec0c2411d3
2 changed files with 8 additions and 5 deletions

View file

@ -1,16 +1,16 @@
# Generated by mksrcinfo v8
# Thu Jan 25 22:33:46 UTC 2018
# Fri Jan 26 13:06:06 UTC 2018
pkgbase = ocaml-yojson
pkgdesc = An optimized parsing and printing library for JSON
pkgver = 1.4.0
pkgrel = 1
pkgrel = 2
url = https://github.com/mjambon/yojson
arch = i686
arch = x86_64
arch = armv7h
license = BSD
makedepends = ocaml-findlib
makedepends = ocamlbuild
makedepends = jbuilder
makedepends = cppo
depends = ocaml-biniou
depends = ocaml-easy-format

View file

@ -3,13 +3,13 @@
pkgname=ocaml-yojson
_oname=yojson
pkgver=1.4.0
pkgrel=1
pkgrel=2
pkgdesc='An optimized parsing and printing library for JSON'
arch=('i686' 'x86_64' 'armv7h')
options=('!makeflags' '!strip' 'staticlibs')
license=('BSD')
depends=('ocaml-biniou' 'ocaml-easy-format')
makedepends=('ocaml-findlib' 'ocamlbuild' 'cppo')
makedepends=('ocaml-findlib' 'jbuilder' 'cppo')
url="https://github.com/mjambon/yojson"
source=("https://github.com/mjambon/${_oname}/archive/v${pkgver}.tar.gz")
sha256sums=('7d06340b769ed6ff5b2171a0e820d1e8f4337aef3929090fc976efe845639146')
@ -20,6 +20,9 @@ build() {
package() {
cd ${srcdir}/${_oname}-${pkgver}
export OPAMROOT="${srcdir}/.opam"
opam init -n
mkdir -p "${pkgdir}/usr/bin"
export OCAMLFIND_DESTDIR="${pkgdir}/$(ocamlfind printconf destdir)"
install -dm755 "$OCAMLFIND_DESTDIR"
jbuilder install