summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Peukert2020-03-21 16:36:12 +0100
committerDaniel Peukert2020-03-21 16:36:12 +0100
commit7ae35aa2ebe13545a3b0a25df16ddc386a42c4f6 (patch)
tree9bfb26e00e897de1e99c0de49eda6bca84c5ffda
parentdff918943e37ae13bf8ed17ff8e9b348cf91d0c0 (diff)
downloadaur-7ae35aa2ebe13545a3b0a25df16ddc386a42c4f6.tar.gz
Added ocaml-ppx_base and dependencies
-rw-r--r--.SRCINFO24
-rw-r--r--.editorconfig8
-rw-r--r--.gitignore14
-rw-r--r--PKGBUILD46
4 files changed, 61 insertions, 31 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2c22f35b43f..044c9c3b91b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,19 +1,23 @@
pkgbase = ocaml-ppx_hash
pkgdesc = A ppx rewriter that generates hash functions from type expressions and definitions
- pkgver = 0.12.0
+ pkgver = 0.13.0
pkgrel = 1
url = https://github.com/janestreet/ppx_hash
arch = x86_64
+ arch = i686
+ arch = arm
+ arch = armv6h
+ arch = armv7h
+ arch = aarch64
license = MIT
- makedepends = dune
- depends = ocaml
- depends = ocaml-base
- depends = ocaml-ppx_compare
- depends = ocaml-ppx_sexp_conv
- depends = ocaml-ppxlib
+ makedepends = dune>=1.5.1
+ depends = ocaml>=4.04.2
+ depends = ocaml-base>=0.13.0
+ depends = ocaml-ppx_compare>=0.13.0
+ depends = ocaml-ppx_sexp_conv>=0.13.0
+ depends = ocaml-ppxlib>=0.9.0
options = !strip
- source = https://github.com/janestreet/ppx_hash/archive/v0.12.0.tar.gz
- sha512sums = bc703cb88ec2ecfc3af8890bc231c3e93ae68caadb6917d2bc7b7f30ca210bfda559d94cd562d5ecaf8ac7178d9219499ffbdb1042d1c83d68646106546ef0ec
+ source = ocaml-ppx_hash-0.13.0-1.tar.gz::https://github.com/janestreet/ppx_hash/archive/v0.13.0.tar.gz
+ sha256sums = fc7d8f9c0ec3ae859f38509419a36754456c15067a1e180d0e80a970726b010c
pkgname = ocaml-ppx_hash
-
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 ce12fe824a8..659f64c1b4d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,30 +1,34 @@
-# Maintainer: Jakob Gahde <j5lx@fmail.co.uk>
-
-pkgname=ocaml-ppx_hash
-pkgver=0.12.0
-pkgrel=1
-pkgdesc="A ppx rewriter that generates hash functions from type expressions and definitions"
-arch=('x86_64')
-url='https://github.com/janestreet/ppx_hash'
+# Maintainer: Daniel Peukert <dan.peukert@gmail.com>
+# Contributor: Jakob Gahde <j5lx@fmail.co.uk>
+_projectname='ppx_hash'
+pkgname="ocaml-$_projectname"
+pkgver='0.13.0'
+pkgrel='1'
+pkgdesc='A ppx rewriter that generates hash functions from type expressions and definitions'
+arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64')
+url="https://github.com/janestreet/$_projectname"
license=('MIT')
-depends=('ocaml' 'ocaml-base' 'ocaml-ppx_compare' 'ocaml-ppx_sexp_conv' 'ocaml-ppxlib')
-makedepends=('dune')
+depends=('ocaml>=4.04.2' 'ocaml-base>=0.13.0' 'ocaml-ppx_compare>=0.13.0' 'ocaml-ppx_sexp_conv>=0.13.0' 'ocaml-ppxlib>=0.9.0')
+makedepends=('dune>=1.5.1')
options=('!strip')
-source=("https://github.com/janestreet/ppx_hash/archive/v${pkgver}.tar.gz")
-sha512sums=('bc703cb88ec2ecfc3af8890bc231c3e93ae68caadb6917d2bc7b7f30ca210bfda559d94cd562d5ecaf8ac7178d9219499ffbdb1042d1c83d68646106546ef0ec')
+source=("$pkgname-$pkgver-$pkgrel.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha256sums=('fc7d8f9c0ec3ae859f38509419a36754456c15067a1e180d0e80a970726b010c')
-build() {
- cd "${srcdir}/ppx_hash-${pkgver}"
+_sourcedirectory="$_projectname-$pkgver"
- dune build
+build() {
+ cd "$srcdir/$_sourcedirectory/"
+ dune build -p "$_projectname" --verbose
}
-
package() {
- cd "${srcdir}/ppx_hash-${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/"
- mkdir -p "${pkgdir}$(ocamlfind printconf destdir)" "${pkgdir}/usr/share"
- dune install --prefix "${pkgdir}/usr" --libdir "${pkgdir}$(ocamlfind printconf destdir)"
- mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share/"
- install -Dm644 "LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+ install -dm755 "$pkgdir/usr/share/licenses/$pkgname"
+ ln -sf "/usr/share/doc/$pkgname/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
}