summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Bailey2018-01-26 08:08:54 -0500
committerEric Bailey2018-01-26 08:08:54 -0500
commit9b46e0a43649391c698a228e3d7fb7962799f772 (patch)
tree4a5899e6e4dc21e17b676160fa328cf136c06270
parentb1b222c5104b24892780baabb797239bf3ee5e5e (diff)
downloadaur-9b46e0a43649391c698a228e3d7fb7962799f772.tar.gz
Add jbuilder to makedepends/remove ocamlbuild. Fix package() step by adding opam init.
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD7
2 files changed, 8 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6e9bc646e4d..e888855aa83 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Thu Jan 25 22:34:44 UTC 2018
+# Fri Jan 26 13:08:45 UTC 2018
pkgbase = ocaml-biniou
pkgdesc = A binary data serialization format inspired by JSON
pkgver = 1.2.0
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/mjambon/biniou
arch = i686
arch = x86_64
@@ -11,7 +11,7 @@ pkgbase = ocaml-biniou
license = BSD
makedepends = ocaml-easy-format
makedepends = ocaml-findlib
- makedepends = ocamlbuild
+ makedepends = jbuilder
depends = glibc
options = !strip
options = !makeflags
diff --git a/PKGBUILD b/PKGBUILD
index e062804b0c5..6161f2806af 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,13 +3,13 @@
pkgname=ocaml-biniou
_oname=biniou
pkgver=1.2.0
-pkgrel=1
+pkgrel=2
pkgdesc='A binary data serialization format inspired by JSON'
arch=('i686' 'x86_64' 'armv7h')
options=('!strip' '!makeflags' 'staticlibs')
license=('BSD')
depends=('glibc')
-makedepends=('ocaml-easy-format' 'ocaml-findlib' 'ocamlbuild')
+makedepends=('ocaml-easy-format' 'ocaml-findlib' 'jbuilder')
url="https://github.com/mjambon/biniou"
source=("https://github.com/mjambon/${_oname}/archive/v${pkgver}.tar.gz")
sha256sums=('d939a9d58660201738c3d22ad5b7976deb2917b22591a07525807bb741357d36')
@@ -20,6 +20,9 @@ build() {
package() {
cd ${srcdir}/${_oname}-${pkgver}
+ export OPAMROOT="${srcdir}/.opam"
+ opam init -n
+ mkdir -p "${pkgdir}/usr/bin"
export OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)"
install -dm755 "$OCAMLFIND_DESTDIR"
jbuilder install