summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ5lx2015-06-09 17:11:24 +0200
committerJ5lx2015-06-09 17:11:24 +0200
commitce1b240eb07a42e127488cf91fec1e99536316d4 (patch)
treed661729dee2822a2f013bcf9e0e9922e1124c462
downloadaur-ce1b240eb07a42e127488cf91fec1e99536316d4.tar.gz
Initial import
-rw-r--r--.SRCINFO30
-rw-r--r--PKGBUILD29
2 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..7861ac4fb2c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,30 @@
+pkgbase = ocaml-core_kernel
+ pkgdesc = Industrial strength alternative to OCaml's standard library (system-independent part)
+ pkgver = 112.24.00
+ pkgrel = 1
+ url = https://github.com/janestreet/core_kernel
+ arch = i686
+ arch = x86_64
+ license = Apache
+ makedepends = ocaml-findlib
+ depends = ocaml
+ depends = ocaml-bin_prot
+ depends = camlp4
+ depends = ocaml-comparelib
+ depends = ocaml-custom_printf
+ depends = ocaml-enumerate
+ depends = ocaml-fieldslib
+ depends = ocaml-herelib
+ depends = ocaml-pa_bench
+ depends = ocaml-pa_ounit
+ depends = ocaml-pa_test
+ depends = ocaml-pipebang
+ depends = ocaml-sexplib
+ depends = ocaml-typerep
+ depends = ocaml-variantslib
+ options = !strip
+ source = https://ocaml.janestreet.com/ocaml-core/112.24/files/core_kernel-112.24.tar.gz
+ md5sums = 776c6560c005a355f6a801c0edf211f9
+
+pkgname = ocaml-core_kernel
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e8e3d14a6d8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Jakob Gahde <j5lx@fmail.co.uk>
+
+pkgname=ocaml-core_kernel
+pkgver=112.24.00
+pkgrel=1
+license=('Apache')
+arch=('i686' 'x86_64')
+pkgdesc="Industrial strength alternative to OCaml's standard library (system-independent part)"
+url="https://github.com/janestreet/core_kernel"
+depends=('ocaml' 'ocaml-bin_prot' 'camlp4' 'ocaml-comparelib' 'ocaml-custom_printf' 'ocaml-enumerate' 'ocaml-fieldslib' 'ocaml-herelib' 'ocaml-pa_bench' 'ocaml-pa_ounit' 'ocaml-pa_test' 'ocaml-pipebang' 'ocaml-sexplib' 'ocaml-typerep' 'ocaml-variantslib')
+makedepends=('ocaml-findlib')
+source=("https://ocaml.janestreet.com/ocaml-core/$(echo ${pkgver} | grep -Po "^[0-9]+\.[0-9]+")/files/${pkgname#ocaml-}-$(echo ${pkgver} | grep -Po "^[0-9]+\.[0-9]+")$([[ $(echo ${pkgver} | grep -Po "[0-9]+$") != "00" ]] && echo ".$(echo ${pkgver} | grep -Po "[0-9]+$")").tar.gz")
+options=('!strip')
+md5sums=('776c6560c005a355f6a801c0edf211f9')
+
+build() {
+ cd "${srcdir}/${pkgname#ocaml-}-${pkgver}"
+
+ ./configure --prefix /usr
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname#ocaml-}-${pkgver}"
+
+ export OCAMLFIND_DESTDIR="${pkgdir}$(ocamlfind printconf destdir)"
+ mkdir -p $OCAMLFIND_DESTDIR/stublibs
+ make install
+}