[arch-commits] Commit in ocaml-yojson/repos/community-x86_64 (PKGBUILD PKGBUILD)
Bruno Pagani
archange at archlinux.org
Wed Nov 28 00:03:23 UTC 2018
Date: Wednesday, November 28, 2018 @ 00:03:19
Author: archange
Revision: 410264
archrelease: copy trunk to community-x86_64
Added:
ocaml-yojson/repos/community-x86_64/PKGBUILD
(from rev 410263, ocaml-yojson/trunk/PKGBUILD)
Deleted:
ocaml-yojson/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 71 +++++++++++++++++++++++++++----------------------------------
1 file changed, 32 insertions(+), 39 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2018-11-28 00:02:52 UTC (rev 410263)
+++ PKGBUILD 2018-11-28 00:03:19 UTC (rev 410264)
@@ -1,39 +0,0 @@
-# Maintainer: Bruno Pagani <archange at archlinux.org>
-
-_pkgname=yojson
-pkgname=ocaml-${_pkgname}
-pkgver=1.4.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=('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}
-
- # Initialize OPAM, this should be removed once opam is “removed” from dune
- export OPAMROOT="${srcdir}"/opam
- opam init -n
-
- # Work around the install command
- make OCAMLFIND_DESTDIR="${pkgdir}$(ocamlfind printconf destdir)" install
-
- # Install LICENSE
- install -Dm644 "${srcdir}"/opam/system/doc/${_pkgname}/LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
-}
Copied: ocaml-yojson/repos/community-x86_64/PKGBUILD (from rev 410263, ocaml-yojson/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2018-11-28 00:03:19 UTC (rev 410264)
@@ -0,0 +1,32 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkgname=yojson
+pkgname=ocaml-${_pkgname}
+pkgver=1.4.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=('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
+}
More information about the arch-commits
mailing list