blob: d1be09ed5cf12ca07cd865c84246f9465945e937 (
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-zed
_pkgname=zed
pkgver=1.6
pkgrel=1
pkgdesc="Abstract engine for text edition in OCaml"
url="https://github.com/diml/zed"
# x86, armhf, s390x: limited by ocaml aport
arch="all !x86 !armhf !s390x"
license="BSD-3-Clause"
depends="ocaml-runtime"
makedepends="dune ocaml ocaml-compiler-libs ocaml-camomile-dev ocaml-findlib
ocaml-react-dev opam"
options="!check" # no tests provided
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.bz2::https://github.com/diml/$_pkgname/releases/download/$pkgver/$_pkgname-$pkgver.tbz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$builddir"
jbuilder build @install
}
package() {
cd "$builddir"
mkdir -p "$pkgdir"/usr/lib/ocaml
jbuilder install \
--destdir="$pkgdir/usr" \
--libdir="$pkgdir/usr/lib/ocaml"
cd "$pkgdir"
# There's just a readme and changelog.
rm -Rf usr/doc
# Remove annotation files and sources.
rm -Rf usr/lib/ocaml/$_pkgname/*.cmt*
rm -Rf usr/lib/ocaml/$_pkgname/*.ml
}
dev() {
default_dev
depends="$pkgname=$pkgver-r$pkgrel"
local sitelib="usr/lib/ocaml/$_pkgname"
cd "$pkgdir"/$sitelib
mkdir -p "$subpkgdir"/$sitelib
mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/
}
sha512sums="e2fa279697a4d01431a7108c07bcbfcebb50ec175da2da5f460ce5d5241f6695e868b49dcdb2c7c944c3a38be891e1f9a97477384cb3663d5615b9a71de357dd ocaml-zed-1.6.tar.bz2"
|