summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Bailey2019-09-06 04:58:31 -0400
committerEric Bailey2019-09-06 04:58:31 -0400
commit81eb894c996072b2828b722ea36f296aadb9610f (patch)
treeaf0d10e15a4990fddfd65850fc51906be3075469
parent6fb89bc4ad7cd4d328d2d897db7d449a21368834 (diff)
downloadaur-81eb894c996072b2828b722ea36f296aadb9610f.tar.gz
1.2.1-2: update to official arch version that was just removed from [community]
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD44
2 files changed, 31 insertions, 34 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 27f55158977..7002600c892 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,23 +1,16 @@
-# Generated by mksrcinfo v8
-# Sun Feb 4 00:10:38 UTC 2018
pkgbase = ocaml-biniou
- pkgdesc = A binary data serialization format inspired by JSON
- pkgver = 1.2.0
- pkgrel = 3
- url = https://github.com/mjambon/biniou
- arch = i686
+ pkgdesc = An optimized parsing and printing library for JSON
+ pkgver = 1.2.1
+ pkgrel = 2
+ url = https://github.com/ocaml-community/biniou
arch = x86_64
- arch = armv7h
license = BSD
- makedepends = ocaml-easy-format
- makedepends = ocaml-findlib
makedepends = dune
- depends = glibc
+ depends = ocaml-easy-format
options = !strip
- options = !makeflags
options = staticlibs
- source = https://github.com/mjambon/biniou/archive/v1.2.0.tar.gz
- sha256sums = d939a9d58660201738c3d22ad5b7976deb2917b22591a07525807bb741357d36
+ source = ocaml-biniou-1.2.1.tar.gz::https://github.com/ocaml-community/biniou/archive/1.2.1.tar.gz
+ sha256sums = 9e38566ede8f2593f9f743fb7da1c8a8674451eabe326b3e2b42a87834a66cb5
pkgname = ocaml-biniou
diff --git a/PKGBUILD b/PKGBUILD
index 56f76a46bca..a22957e6f93 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,29 +1,33 @@
+# Author: Bruno Pagani <archange@archlinux.org>
# Maintainer: nerflad <nerflad@gmail.com>
-pkgname=ocaml-biniou
-_oname=biniou
-pkgver=1.2.0
-pkgrel=3
-pkgdesc='A binary data serialization format inspired by JSON'
-arch=('i686' 'x86_64' 'armv7h')
-options=('!strip' '!makeflags' 'staticlibs')
+_pkgname=biniou
+pkgname=ocaml-${_pkgname}
+pkgver=1.2.1
+pkgrel=2
+pkgdesc="An optimized parsing and printing library for JSON"
+arch=('x86_64')
+url="https://github.com/ocaml-community/${_pkgname}"
license=('BSD')
-depends=('glibc')
-makedepends=('ocaml-easy-format' 'ocaml-findlib' 'dune')
-url="https://github.com/mjambon/biniou"
-source=("https://github.com/mjambon/${_oname}/archive/v${pkgver}.tar.gz")
-sha256sums=('d939a9d58660201738c3d22ad5b7976deb2917b22591a07525807bb741357d36')
+options=('!strip' 'staticlibs')
+depends=('ocaml-easy-format')
+makedepends=('dune')
+source=(${pkgname}-${pkgver}.tar.gz::"${url}/archive/${pkgver}.tar.gz")
+sha256sums=('9e38566ede8f2593f9f743fb7da1c8a8674451eabe326b3e2b42a87834a66cb5')
+
build() {
- cd ${srcdir}/${_oname}-${pkgver}
+ cd ${_pkgname}-${pkgver}
make all
}
+check() {
+ cd ${_pkgname}-${pkgver}
+ make test
+}
+
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
+ cd ${_pkgname}-${pkgver}
+ DESTDIR="${pkgdir}" dune install --prefix=/usr --libdir="$(ocamlfind printconf destdir)"
+ install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+ rm -r "${pkgdir}"/usr/doc
}