aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ocaml-uchar/APKBUILD
blob: a3b74f9549fb9d15a028e766e0f315f46f409fbb (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
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
#
# NOTE: This is just a dummy module to satisfy dependencies, uchar is provided
# directly by ocaml since 4.03.
pkgname=ocaml-uchar
_pkgname=uchar
pkgver=0.0.2
pkgrel=0
pkgdesc="Compatibility library for OCaml's Uchar module"
url="https://github.com/ocaml/uchar"
arch="all !x86 !armhf !armv7 !s390x !mips !mips64"  # limited by ocaml aport
license="LGPL-2.1-WITH-linking-exception"
depends="ocaml-runtime"
depends_dev="$pkgname=$pkgver-r$pkgrel"
makedepends="ocaml ocamlbuild opam"
options="!check"  # no tests provided
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/ocaml/uchar/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	cd "$builddir"

	ocaml pkg/build.ml \
		native=true \
		native-dynlink=true
}

package() {
	cd "$builddir"

	opam-installer -i \
		--prefix="$pkgdir/usr" \
		--libdir="$pkgdir/usr/lib/ocaml" \
		$_pkgname.install
}

dev() {
	default_dev
	mkdir -p "$subpkgdir"/usr/lib/ocaml/$_pkgname
}

sha512sums="487a9706cf9dfc9b9c94442a51766cc211687d6ebcb4dd3c94d09cb1ed6d7fd61e966e91a4121fe2d1681b2fd6bfee9079d3bccccdb6d65ba2111524ab5dd1bc  ocaml-uchar-0.0.2.tar.gz"