blob: 5773c6f89979e2b5478179fd43a41572856ca9f9 (
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
|
# Maintainer: Zhiwei Chen <condy0919@gmail.com>
_pkgname=ppx_yojson_conv_lib
pkgname=ocaml-${_pkgname}
pkgver=0.17.0
pkgrel=1
pkgdesc="Runtime lib for ppx_yojson_conv"
arch=('x86_64')
depends=('ocaml' 'ocaml-yojson>=1.7.0')
makedepends=('git' 'dune>=2.0.0')
url="https://github.com/janestreet/ppx_yojson_conv_lib"
license=('MIT')
source=("${url}/archive/v${pkgver}.tar.gz")
sha256sums=('f6e6ee92408c53c5ecd8bb5ae93811aa4cf71f8dc144d5943be8fc2c7697b199')
options=('!strip')
provides=('ocaml-ppx_yojson_conv_lib')
conflicts=('ocaml-ppx_yojson_conv_lib')
build() {
cd "${_pkgname}-${pkgver}"
dune build
}
package() {
cd "${_pkgname}-${pkgver}"
DESTDIR="${pkgdir}" dune install --prefix="/usr" --libdir="/usr/lib/ocaml"
# Dune installs documentation in /usr/doc, fix that.
install -dm755 "${pkgdir}/usr/share/"
mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share/"
rm "${pkgdir}"/usr/lib/ocaml/${_pkgname}/dune-package
}
|