summaryrefslogtreecommitdiff
path: root/pcr/ocaml-base
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2019-02-12 10:16:43 +0100
committerAndreas Grapentin <andreas@grapentin.org>2019-02-12 10:16:43 +0100
commite81a2320a7e2cac4b2988c6fbf6009cd8dc76e48 (patch)
tree17ac888f309eee9f7d294dce3405befa700a032f /pcr/ocaml-base
parent0b72b7e523813358b39d76bd70088bce324e3bf9 (diff)
downloadabslibre-e81a2320a7e2cac4b2988c6fbf6009cd8dc76e48.tar.gz
abslibre-e81a2320a7e2cac4b2988c6fbf6009cd8dc76e48.tar.bz2
abslibre-e81a2320a7e2cac4b2988c6fbf6009cd8dc76e48.zip
pcr/ocaml-base: updated to 0.11.1
Diffstat (limited to 'pcr/ocaml-base')
-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/"
+}