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

Jürgen Hötzel juergen at archlinux.org
Thu Nov 29 07:16:18 UTC 2018


    Date: Thursday, November 29, 2018 @ 07:16:17
  Author: juergen
Revision: 410511

archrelease: copy trunk to community-x86_64

Added:
  ocaml-easy-format/repos/community-x86_64/PKGBUILD
    (from rev 410510, ocaml-easy-format/trunk/PKGBUILD)
Deleted:
  ocaml-easy-format/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   71 +++++++++++++++++++++++++++----------------------------------
 1 file changed, 32 insertions(+), 39 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-11-29 07:16:01 UTC (rev 410510)
+++ PKGBUILD	2018-11-29 07:16:17 UTC (rev 410511)
@@ -1,39 +0,0 @@
-# Maintainer: Bruno Pagani <archange at archlinux.org>
-
-_pkgname=easy-format
-pkgname=ocaml-${_pkgname}
-pkgver=1.3.1
-pkgrel=2
-pkgdesc="An optimized parsing and printing library for JSON"
-arch=('x86_64')
-url="https://github.com/mjambon/${_pkgname}"
-license=('BSD')
-options=('!strip' 'staticlibs')
-depends=('glibc')
-makedepends=('ocaml-findlib' 'dune' 'opam')
-source=(${pkgname}-${pkgver}.tar.gz::"${url}/archive/v${pkgver}.tar.gz")
-sha256sums=('489d55ea5de171cea2d7e2114bcd5cebd1fcbf89f839fbf3757769507502e1f0')
-
-build() {
-    cd ${_pkgname}-${pkgver}
-    make all
-}
-
-check() {
-    cd ${_pkgname}-${pkgver}
-    make test
-}
-
-package() {
-    cd ${_pkgname}-${pkgver}
-
-    # Initialize OPAM
-    export OPAMROOT="${srcdir}"/opam
-    opam init -n
-
-    # Work around missing install command
-    OCAMLFIND_DESTDIR="${pkgdir}$(ocamlfind printconf destdir)" jbuilder install
-
-    # Install LICENSE
-    install -Dm644 "${srcdir}"/opam/system/doc/easy-format/LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
-}

Copied: ocaml-easy-format/repos/community-x86_64/PKGBUILD (from rev 410510, ocaml-easy-format/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-11-29 07:16:17 UTC (rev 410511)
@@ -0,0 +1,32 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkgname=easy-format
+pkgname=ocaml-${_pkgname}
+pkgver=1.3.1
+pkgrel=3
+pkgdesc="An optimized parsing and printing library for JSON"
+arch=('x86_64')
+url="https://github.com/mjambon/${_pkgname}"
+license=('BSD')
+options=('!strip' 'staticlibs')
+depends=('glibc')
+makedepends=('dune')
+source=(${pkgname}-${pkgver}.tar.gz::"${url}/archive/v${pkgver}.tar.gz")
+sha256sums=('489d55ea5de171cea2d7e2114bcd5cebd1fcbf89f839fbf3757769507502e1f0')
+
+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