summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/ocaml-base/PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/pcr/ocaml-base/PKGBUILD b/pcr/ocaml-base/PKGBUILD
new file mode 100644
index 000000000..b8b5581cc
--- /dev/null
+++ b/pcr/ocaml-base/PKGBUILD
@@ -0,0 +1,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/"
+}