blob: b8b5581cc9b076a65ee972bf72818fb0742e52b2 (
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
|
# Maintainer (AUR): Jakob Gahde <j5lx@fmail.co.uk>
pkgname=ocaml-base
pkgver=0.11.1
pkgrel=1
pkgdesc="Full standard library replacement for OCaml"
arch=('x86_64')
arch+=('i686' 'armv7h')
url='https://github.com/janestreet/base'
license=('Apache')
depends=('ocaml' 'ocaml-sexplib0')
makedepends=('dune')
options=('!strip')
source=("https://github.com/janestreet/base/releases/download/v${pkgver}/base-v${pkgver}.tbz")
md5sums=('e7e7dc5db3f1fea19d74a31bbd4ac621')
build() {
cd "${srcdir}/base-v${pkgver}"
jbuilder build
}
package() {
cd "${srcdir}/base-v${pkgver}"
mkdir -p "${pkgdir}$(ocamlfind printconf destdir)" "${pkgdir}/usr/share"
jbuilder install --prefix "${pkgdir}/usr" --libdir "${pkgdir}$(ocamlfind printconf destdir)"
mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share/"
}
|