blob: c69d86b7611b84b917ba83033badd701a9d71d95 (
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
|
# Author: Bruno Pagani <archange@archlinux.org>
# Maintainer: Zhiwei Chen <condy0919@gmail.com>
_pkgname=biniou
pkgname=ocaml-${_pkgname}
pkgver=1.2.1
pkgrel=3
pkgdesc="An optimized parsing and printing library for JSON"
arch=('x86_64')
url="https://github.com/ocaml-community/${_pkgname}"
license=('BSD')
options=('!strip' 'staticlibs')
provides=('ocaml-biniou')
depends=('ocaml-easy-format')
makedepends=('dune')
source=("${url}/releases/download/${pkgver}/${_pkgname}-${pkgver}.tbz")
sha256sums=('35546c68b1929a8e6d27a3b39ecd17b38303a0d47e65eb9d1480c2061ea84335')
build() {
cd ${_pkgname}-${pkgver}
make all
}
check() {
cd ${_pkgname}-${pkgver}
make test
}
package() {
cd ${_pkgname}-${pkgver}
DESTDIR="${pkgdir}" dune install --prefix=/usr --libdir="$(ocamlfind printconf destdir)"
install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
rm -r "${pkgdir}"/usr/doc
}
|