blob: 37edc8dd1464ec95a9bfbbd075bd322b327089b2 (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=ocaml-biniou
_pkgname=biniou
pkgver=1.2.1
pkgrel=0
pkgdesc="Extensible binary data format, like JSON but faster"
url="https://github.com/ocaml-community/biniou"
arch="all !x86 !armhf !armv7 !s390x" # limited by ocaml aport
license="BSD-3-Clause"
depends="ocaml-runtime ocaml-easy-format"
depends_dev="$pkgname=$pkgver-r$pkgrel"
makedepends="dune ocaml ocaml-easy-format-dev ocaml-findlib opam"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/mjambon/$_pkgname/archive/v$pkgver.tar.gz"
source="$pkgname-$pkgver.tar.gz::https://github.com/ocaml-community/biniou/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
jbuilder build @install
}
check() {
jbuilder runtest
}
package() {
mkdir -p "$pkgdir"/usr/lib/ocaml
jbuilder install \
--destdir="$pkgdir" \
--prefix=/usr \
--libdir=/usr/lib/ocaml
# There's just a readme and changelog.
rm -Rf "$pkgdir"/usr/doc
# Remove annotation files and sources.
cd "$pkgdir"/usr/lib/ocaml/$_pkgname
rm -f *.cmt* *.ml
}
dev() {
local sitelib="usr/lib/ocaml/$_pkgname"
default_dev
mkdir -p "$subpkgdir"/$sitelib
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
cd "$pkgdir"/$sitelib
mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/
}
sha512sums="f0166666559f3a767fdc6987bad45ec4a772b70b8880b6d769ef644c9bfd46962f089c7b5dfff368413015e765daf4bacffe253bdb3478d9a4d30a15f0d29589 ocaml-biniou-1.2.1.tar.gz"
|