summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Peukert2020-03-21 22:50:27 +0100
committerDaniel Peukert2020-03-21 22:50:27 +0100
commit6e4b5687a5254d39361700acbd5a0f1b2932a82d (patch)
treecd7c194e4541e31535e3e60bee01e9605bac41dd
parent917705b534e8cde59435d66a6e32e1181c68224d (diff)
downloadaur-6e4b5687a5254d39361700acbd5a0f1b2932a82d.tar.gz
Added ocaml-core_kernel and the rest of its dependencies
-rw-r--r--.SRCINFO59
-rw-r--r--.editorconfig8
-rw-r--r--.gitignore14
-rw-r--r--PKGBUILD58
4 files changed, 92 insertions, 47 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8a56bd47c0f..d85bdcef8f8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,36 +1,41 @@
pkgbase = ocaml-core_kernel
pkgdesc = Industrial strength alternative to OCaml's standard library (system-independent part)
- pkgver = 0.11.1
+ pkgver = 0.13.1
pkgrel = 1
epoch = 1
url = https://github.com/janestreet/core_kernel
- arch = i686
arch = x86_64
- license = Apache
- makedepends = dune
- depends = ocaml
- depends = ocaml-base
- depends = ocaml-bin_prot
- depends = ocaml-configurator
- depends = ocaml-fieldslib
- depends = ocaml-jane-street-headers
- depends = ocaml-ppx_assert
- depends = ocaml-ppx_base
- depends = ocaml-ppx_hash
- depends = ocaml-ppx_inline_test
- depends = ocaml-ppx_jane
- depends = ocaml-ppx_sexp_conv
- depends = ocaml-ppx_sexp_message
- depends = ocaml-sexplib
- depends = ocaml-splittable_random
- depends = ocaml-stdio
- depends = ocaml-typerep
- depends = ocaml-variantslib
- depends = ocaml-migrate-parsetree
- depends = ocaml-ppxlib
+ arch = i686
+ arch = arm
+ arch = armv6h
+ arch = armv7h
+ arch = aarch64
+ license = MIT
+ makedepends = dune>=1.5.1
+ depends = ocaml>=4.08.0
+ depends = ocaml-base>=0.13.0
+ depends = ocaml-base_bigstring>=0.13.0
+ depends = ocaml-base_quickcheck>=0.13.0
+ depends = ocaml-bin_prot>=0.13.0
+ depends = ocaml-fieldslib>=0.13.0
+ depends = ocaml-jane-street-headers>=0.13.0
+ depends = ocaml-jst-config>=0.13.0
+ depends = ocaml-ppx_assert>=0.13.0
+ depends = ocaml-ppx_base>=0.13.0
+ depends = ocaml-ppx_hash>=0.13.0
+ depends = ocaml-ppx_inline_test>=0.13.0
+ depends = ocaml-ppx_jane>=0.13.0
+ depends = ocaml-ppx_sexp_conv>=0.13.0
+ depends = ocaml-ppx_sexp_message>=0.13.0
+ depends = ocaml-sexplib>=0.13.0
+ depends = ocaml-splittable_random>=0.13.0
+ depends = ocaml-stdio>=0.13.0
+ depends = ocaml-time_now>=0.13.0
+ depends = ocaml-typerep>=0.13.0
+ depends = ocaml-variantslib>=0.13.0
+ depends = ocaml-ppxlib>=0.9.0
options = !strip
- source = https://github.com/janestreet/core_kernel/archive/v0.11.1.tar.gz
- sha512sums = 0b40af0f450f281ed6a49adaf8d0c8435ea86b3891bb760336097a4f4c80d1c184c27d20c40eef3b07757691d97afe9ced10f5fe5c9e691fd4dd2afa1ca4bd4e
+ source = ocaml-core_kernel-0.13.1-1.tar.gz::https://github.com/janestreet/core_kernel/archive/v0.13.1.tar.gz
+ sha256sums = 2e9dec37cf1b1a05fa3ad24ae8efd1e389b82928d598db097771405da1d6b214
pkgname = ocaml-core_kernel
-
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 00000000000..a467ee9a97a
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,8 @@
+root = true
+
+[*]
+charset = utf-8
+end_of_line = lf
+insert_final_newline = true
+indent_style = tab
+tab_width = 4
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..82b3c183d5d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,14 @@
+# from https://github.com/github/gitignore/blob/master/ArchLinuxPackages.gitignore
+*.tar
+*.tar.*
+*.rpm
+*.jar
+*.exe
+*.msi
+*.zip
+*.tgz
+*.log
+*.log.*
+*.sig
+
+*/
diff --git a/PKGBUILD b/PKGBUILD
index 02c186efbe5..8d25080afd1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,29 +1,47 @@
-# Maintainer: Jakob Gahde <j5lx@fmail.co.uk>
-
-pkgname=ocaml-core_kernel
-pkgver=0.11.1
-pkgrel=1
-epoch=1
+# Maintainer: Daniel Peukert <dan.peukert@gmail.com>
+# Contributor: Jakob Gahde <j5lx@fmail.co.uk>
+_projectname='core_kernel'
+pkgname="ocaml-$_projectname"
+pkgver='0.13.1'
+pkgrel='1'
+epoch='1'
pkgdesc="Industrial strength alternative to OCaml's standard library (system-independent part)"
-arch=('i686' 'x86_64')
-url="https://github.com/janestreet/core_kernel"
-license=('Apache')
-depends=('ocaml' 'ocaml-base' 'ocaml-bin_prot' 'ocaml-configurator' 'ocaml-fieldslib' 'ocaml-jane-street-headers' 'ocaml-ppx_assert' 'ocaml-ppx_base' 'ocaml-ppx_hash' 'ocaml-ppx_inline_test' 'ocaml-ppx_jane' 'ocaml-ppx_sexp_conv' 'ocaml-ppx_sexp_message' 'ocaml-sexplib' 'ocaml-splittable_random' 'ocaml-stdio' 'ocaml-typerep' 'ocaml-variantslib' 'ocaml-migrate-parsetree' 'ocaml-ppxlib')
-makedepends=('dune')
+arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64')
+url="https://github.com/janestreet/$_projectname"
+license=('MIT')
+depends=('ocaml>=4.08.0' 'ocaml-base>=0.13.0' 'ocaml-base_bigstring>=0.13.0' 'ocaml-base_quickcheck>=0.13.0' 'ocaml-bin_prot>=0.13.0' 'ocaml-fieldslib>=0.13.0' 'ocaml-jane-street-headers>=0.13.0' 'ocaml-jst-config>=0.13.0' 'ocaml-ppx_assert>=0.13.0' 'ocaml-ppx_base>=0.13.0' 'ocaml-ppx_hash>=0.13.0' 'ocaml-ppx_inline_test>=0.13.0' 'ocaml-ppx_jane>=0.13.0' 'ocaml-ppx_sexp_conv>=0.13.0' 'ocaml-ppx_sexp_message>=0.13.0' 'ocaml-sexplib>=0.13.0' 'ocaml-splittable_random>=0.13.0' 'ocaml-stdio>=0.13.0' 'ocaml-time_now>=0.13.0' 'ocaml-typerep>=0.13.0' 'ocaml-variantslib>=0.13.0' 'ocaml-ppxlib>=0.9.0')
+makedepends=('dune>=1.5.1')
options=('!strip')
-source=("https://github.com/janestreet/core_kernel/archive/v${pkgver}.tar.gz")
-sha512sums=('0b40af0f450f281ed6a49adaf8d0c8435ea86b3891bb760336097a4f4c80d1c184c27d20c40eef3b07757691d97afe9ced10f5fe5c9e691fd4dd2afa1ca4bd4e')
+source=("$pkgname-$pkgver-$pkgrel.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha256sums=('2e9dec37cf1b1a05fa3ad24ae8efd1e389b82928d598db097771405da1d6b214')
-build() {
- cd "${srcdir}/core_kernel-${pkgver}"
+_sourcedirectory="$_projectname-$pkgver"
- jbuilder build
+build() {
+ cd "$srcdir/$_sourcedirectory/"
+ dune build -p "$_projectname" --verbose
}
+# fails because of a circular dependency on core
+# check() {
+# cd "$srcdir/$_sourcedirectory/"
+# dune runtest -p "$_projectname" --verbose
+# }
+
package() {
- cd "${srcdir}/core_kernel-${pkgver}"
+ cd "$srcdir/$_sourcedirectory/"
+ DESTDIR="$pkgdir" dune install --prefix '/usr' --libdir 'lib/ocaml'
+
+ install -dm755 "$pkgdir/usr/share/doc/$pkgname"
+ mv "$pkgdir/usr/doc/$_projectname/"* "$pkgdir/usr/share/doc/$pkgname/"
+ rm -r "$pkgdir/usr/doc/"
+
+ for _copy in 'MLton-license.txt' 'strftime.js-licence.txt' 'THIRD-PARTY.txt'; do
+ install -Dm644 "$_copy" "$pkgdir/usr/share/doc/$pkgname/$_copy"
+ done
- install -dm755 "${pkgdir}$(ocamlfind -printconf destdir)" "${pkgdir}/usr/share"
- jbuilder install --prefix "${pkgdir}/usr" --libdir "${pkgdir}$(ocamlfind -printconf destdir)"
- mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share/"
+ install -dm755 "$pkgdir/usr/share/licenses/$pkgname"
+ for _license in 'LICENSE.md' 'MLton-license.txt' 'strftime.js-licence.txt' 'THIRD-PARTY.txt'; do
+ ln -sf "/usr/share/doc/$pkgname/$_license" "$pkgdir/usr/share/licenses/$pkgname/$_license"
+ done
}