blob: 76e00826b0e949f530bc8c52ec9fe31d42360b64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Maintainer: Mort Yao <soi@mort.ninja>
pkgname=ocaml-yojson-git
pkgver=20231123
pkgrel=1
pkgdesc="Low level JSON binary for OCaml"
arch=('x86_64')
url='https://github.com/ocaml-community/yojson'
license=('BSD')
options=('!strip' 'staticlibs')
provides=('ocaml-yojson')
conflicts=('ocaml-yojson')
depends=('ocaml-biniou' 'ocaml-easy-format' 'ocaml-sexplib')
makedepends=('dune' 'cppo')
source=("${pkgname}::git+https://github.com/ocaml-community/yojson.git")
md5sums=('SKIP')
pkgver() {
cd "$pkgname"
git log -1 --pretty=format:%cd --date=short | sed 's/-//g'
}
build() {
cd "$pkgname"
make all
}
package() {
cd "$pkgname"
DESTDIR="${pkgdir}" dune install --prefix=/usr --libdir="$(ocamlfind printconf destdir)"
# remove rogue dune-package file
rm -r "${pkgdir}"/usr/doc
rm -r "${pkgdir}"/usr/lib/ocaml/yojson/dune-package
}
|