summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Peukert2020-03-15 17:48:25 +0100
committerDaniel Peukert2020-03-15 17:48:25 +0100
commit517da367239b1bab580a3837d079f66298b96ed5 (patch)
treeb328746f6b6431c2b3636d3c455c1910e5fcb28d
parent62572e7f67bd97b2d7efaa049ff8819403a50c97 (diff)
downloadaur-517da367239b1bab580a3837d079f66298b96ed5.tar.gz
Added ppx_let and dependencies
-rw-r--r--.SRCINFO20
-rw-r--r--.editorconfig8
-rw-r--r--.gitignore14
-rw-r--r--PKGBUILD48
4 files changed, 60 insertions, 30 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 411a0dc1a9b..f02a22bf62c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,19 @@
-# Generated by mksrcinfo v8
-# Wed Jun 27 23:26:09 UTC 2018
pkgbase = ocaml-compiler-libs-repackaged
pkgdesc = OCaml compiler libraries repackaged
- pkgver = 0.11.0
+ pkgver = 0.12.1
pkgrel = 1
url = https://github.com/janestreet/ocaml-compiler-libs
arch = x86_64
- license = Apache
- makedepends = dune
- depends = ocaml
+ arch = i686
+ arch = arm
+ arch = armv6h
+ arch = armv7h
+ arch = aarch64
+ license = MIT
+ makedepends = dune>=1.0.0
+ depends = ocaml>=4.04.1
options = !strip
- source = https://ocaml.janestreet.com/ocaml-core/v0.11/files/ocaml-compiler-libs-v0.11.0.tar.gz
- md5sums = e170c16186aa55b7e8b11e461418a10a
+ source = ocaml-compiler-libs-repackaged-0.12.1-1.tar.gz::https://github.com/janestreet/ocaml-compiler-libs/archive/v0.12.1.tar.gz
+ sha256sums = d20f217992f26fa2012c67537391d55e1619e37c51087d1d65b583f08c849a04
pkgname = ocaml-compiler-libs-repackaged
-
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 bd887474201..cd74d2a34d0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,29 +1,35 @@
-# Maintainer: Jakob Gahde <j5lx@fmail.co.uk>
-
-pkgname=ocaml-compiler-libs-repackaged
-pkgver=0.11.0
-pkgrel=1
-pkgdesc="OCaml compiler libraries repackaged"
-arch=('x86_64')
-url='https://github.com/janestreet/ocaml-compiler-libs'
-license=('Apache')
-depends=('ocaml')
-makedepends=('dune')
+# Maintainer: Daniel Peukert <dan.peukert@gmail.com>
+# Contributor: Jakob Gahde <j5lx@fmail.co.uk>
+_projectname='compiler-libs'
+_pkgname="ocaml-$_projectname"
+pkgname="$_pkgname-repackaged"
+pkgver='0.12.1'
+pkgrel='1'
+pkgdesc='OCaml compiler libraries repackaged'
+arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64')
+url="https://github.com/janestreet/$_pkgname"
+license=('MIT')
+depends=('ocaml>=4.04.1')
+makedepends=('dune>=1.0.0')
options=('!strip')
-source=("https://ocaml.janestreet.com/ocaml-core/v$(echo ${pkgver} | grep -Po "^[0-9]+\.[0-9]+")/files/ocaml-compiler-libs-v${pkgver}.tar.gz")
-md5sums=('e170c16186aa55b7e8b11e461418a10a')
+source=("$pkgname-$pkgver-$pkgrel.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha256sums=('d20f217992f26fa2012c67537391d55e1619e37c51087d1d65b583f08c849a04')
-build() {
- cd "${srcdir}/ocaml-compiler-libs-v${pkgver}"
+_sourcedirectory="$_pkgname-$pkgver"
- jbuilder build
+build() {
+ cd "$srcdir/$_sourcedirectory/"
+ dune build -p "$_pkgname" --verbose
}
-
package() {
- cd "${srcdir}/ocaml-compiler-libs-v${pkgver}"
+ cd "$srcdir/$_sourcedirectory/"
+ DESTDIR="$pkgdir" dune install --prefix '/usr' --libdir 'lib/ocaml'
+
+ install -dm755 "$pkgdir/usr/share/doc/$pkgname"
+ mv "$pkgdir/usr/doc/$_pkgname/"* "$pkgdir/usr/share/doc/$pkgname/"
+ rm -r "$pkgdir/usr/doc/"
- 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/"
+ install -dm755 "$pkgdir/usr/share/licenses/$pkgname"
+ ln -sf "/usr/share/doc/$pkgname/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
}