summaryrefslogtreecommitdiff
path: root/pcr/ocaml-camomile/PKGBUILD
blob: ee776a9308f1eefdc386e919a9ca67b8d6dce369 (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
# Maintainer (AUR): robertfoster
# Contributor (AUR): Marek Kubica <marek@xivilization.net>
# Contributor (AUR): Serge Zirukin <ftrvxmtrx@gmail.com>
# Maintainer: Aurélien Desbrières <aurelien@hackers.camp>

pkgname=ocaml-camomile
pkgver=1.0.1
pkgrel=3
pkgdesc="Comprehensive Unicode library for OCaml"
arch=('i686' 'x86_64')
arch+=('armv7h')
url="https://github.com/yoriyuki/Camomile"
license=('LGPL')
makedepends=('dune' 'ocaml' 'ocaml-findlib' 'opam')
source=(https://github.com/yoriyuki/Camomile/archive/$pkgver.tar.gz)
options=(!strip !makeflags staticlibs)

build() {
	cd Camomile-${pkgver}
	jbuilder build @install
}

check() {
	cd Camomile-${pkgver}
	jbuilder runtest
}

package() {
	cd Camomile-${pkgver}

	mkdir -p "$pkgdir"/usr/lib/ocaml
	jbuilder install \
		--destdir="$pkgdir" \
		--libdir="/usr/lib/ocaml"

	cd "$pkgdir"

	# There's just a readme.
	rm -Rf usr/doc

	# Remove annotation files and sources.
	rm -Rf usr/lib/ocaml/$_pkgname/*.cmt*
	rm -Rf usr/lib/ocaml/$_pkgname/*.ml
}

md5sums=('9557fd86f13eba45474fc1336f225f32')