diff options
author | condy | 2022-06-17 19:57:58 +0800 |
---|---|---|
committer | condy | 2022-06-17 19:57:58 +0800 |
commit | 83d2c77494d9d070f5ce88fc45433f50f5cb8761 (patch) | |
tree | 6b2ccd2405ef2042005117f3b316b1eb9b56bdfd /PKGBUILD | |
parent | 7db928251b9a8753934e92c79127c05b84bf7d4c (diff) | |
download | aur-83d2c77494d9d070f5ce88fc45433f50f5cb8761.tar.gz |
Update to 2.0.0
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 18 |
1 files changed, 13 insertions, 5 deletions
@@ -3,8 +3,8 @@ _pkgname=yojson pkgname=ocaml-${_pkgname} -pkgver=1.7.0 -pkgrel=3 +pkgver=2.0.0 +pkgrel=1 pkgdesc="Low level JSON binary for OCaml" arch=('x86_64') url="https://github.com/ocaml-community/${_pkgname}" @@ -12,20 +12,28 @@ license=('BSD') options=('!strip' 'staticlibs') provides=('ocaml-yojson') conflicts=('ocaml-yojson') -depends=('ocaml-biniou' 'ocaml-easy-format') +depends=() makedepends=('dune' 'cppo') source=(https://github.com/ocaml-community/${_pkgname}/releases/download/${pkgver}/${_pkgname}-${pkgver}.tbz) -sha256sums=('656fc65f794186274f8b961dc38daba9e2de2fc993829291defbda2186812cc6') +sha256sums=('ab5d863f7f951a8f7fb4a708399ca2da2cf139a5e0af7818145c20295420cb1a') build() { cd ${_pkgname}-${pkgver} + + # Since we're using ocaml latest, at least 4.13.1 + sed -i '/(libraries seq)/d' lib/dune + + # No need to build the benchmarks + rm yojson-bench.opam + rm -r bench/ + make all } package() { cd ${_pkgname}-${pkgver} - DESTDIR="${pkgdir}" dune install --prefix=/usr --libdir="lib/ocaml" + DESTDIR="${pkgdir}" dune install --prefix=/usr --libdir="/usr/lib/ocaml" # remove rogue dune-package file rm -r "${pkgdir}"/usr/doc |