[arch-commits] Commit in ocaml-yojson/repos/community-x86_64 (PKGBUILD PKGBUILD)

Jürgen Hötzel juergen at archlinux.org
Fri Aug 16 06:32:04 UTC 2019


    Date: Friday, August 16, 2019 @ 06:32:03
  Author: juergen
Revision: 499751

archrelease: copy trunk to community-x86_64

Added:
  ocaml-yojson/repos/community-x86_64/PKGBUILD
    (from rev 499750, ocaml-yojson/trunk/PKGBUILD)
Deleted:
  ocaml-yojson/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   70 +++++++++++++++++++++++++++++++++----------------------------
 1 file changed, 38 insertions(+), 32 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-08-16 06:31:45 UTC (rev 499750)
+++ PKGBUILD	2019-08-16 06:32:03 UTC (rev 499751)
@@ -1,32 +0,0 @@
-# Maintainer: Bruno Pagani <archange at archlinux.org>
-
-_pkgname=yojson
-pkgname=ocaml-${_pkgname}
-pkgver=1.4.1
-pkgrel=4
-pkgdesc="An optimized parsing and printing library for JSON"
-arch=('x86_64')
-url="https://github.com/mjambon/${_pkgname}"
-license=('BSD')
-options=('!strip' 'staticlibs')
-depends=('ocaml-biniou' 'ocaml-easy-format')
-makedepends=('dune' 'cppo')
-source=(${pkgname}-${pkgver}.tar.gz::"${url}/archive/v${pkgver}.tar.gz")
-sha256sums=('c081a8cb5a03bddbcac4614f468cf5edafe11805277572af4071e362be6611fb')
-
-build() {
-    cd ${_pkgname}-${pkgver}
-    make all
-}
-
-check() {
-    cd ${_pkgname}-${pkgver}
-    make test
-}
-
-package() {
-    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
-}

Copied: ocaml-yojson/repos/community-x86_64/PKGBUILD (from rev 499750, ocaml-yojson/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-08-16 06:32:03 UTC (rev 499751)
@@ -0,0 +1,38 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkgname=yojson
+pkgname=ocaml-${_pkgname}
+pkgver=1.4.1
+pkgrel=5
+pkgdesc="An optimized parsing and printing library for JSON"
+arch=('x86_64')
+url="https://github.com/mjambon/${_pkgname}"
+license=('BSD')
+options=('!strip' 'staticlibs')
+depends=('ocaml-biniou' 'ocaml-easy-format')
+makedepends=('dune' 'cppo')
+source=(${pkgname}-${pkgver}.tar.gz::"${url}/archive/v${pkgver}.tar.gz"
+	'https://github.com/ocaml-community/yojson/commit/a8095892a38d2a4e98f963c2627ac8cc484e0bbf.patch')
+sha256sums=('c081a8cb5a03bddbcac4614f468cf5edafe11805277572af4071e362be6611fb' '62aeecc4a880f59fcfaa51ad27826e0ad418adb59b3b125ec4d60fe7f671f1b9')
+
+prepare() {
+    cd ${_pkgname}-${pkgver}
+    # fix jbuild dependencies for cppo generation
+    patch -p1 -i "${srcdir}/a8095892a38d2a4e98f963c2627ac8cc484e0bbf.patch"
+}
+build() {
+    cd ${_pkgname}-${pkgver}
+    make all
+}
+
+check() {
+    cd ${_pkgname}-${pkgver}
+    make test
+}
+
+package() {
+    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
+}


More information about the arch-commits mailing list