[arch-commits] Commit in ocaml-easy-format/trunk (PKGBUILD)
Bruno Pagani
archange at archlinux.org
Sun Oct 21 17:25:14 UTC 2018
Date: Sunday, October 21, 2018 @ 17:25:13
Author: archange
Revision: 398274
FS#60495
Modified:
ocaml-easy-format/trunk/PKGBUILD
----------+
PKGBUILD | 13 +++++--------
1 file changed, 5 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-10-21 17:22:12 UTC (rev 398273)
+++ PKGBUILD 2018-10-21 17:25:13 UTC (rev 398274)
@@ -10,7 +10,7 @@
license=('BSD')
options=('!strip' 'staticlibs')
depends=('glibc')
-makedepends=('ocaml-findlib' 'dune' 'opam')
+makedepends=('dune')
source=(${pkgname}-${pkgver}.tar.gz::"${url}/archive/v${pkgver}.tar.gz")
sha256sums=('489d55ea5de171cea2d7e2114bcd5cebd1fcbf89f839fbf3757769507502e1f0')
@@ -27,13 +27,10 @@
package() {
cd ${_pkgname}-${pkgver}
- # Initialize OPAM
- export OPAMROOT="${srcdir}"/opam
- opam init -n
+ # Work around install command
+ dune install --prefix="${pkgdir}"/usr/ --libdir="${pkgdir}$(ocamlfind printconf destdir)"
- # 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}/
+ install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+ rm -r "${pkgdir}"/usr/doc
}
More information about the arch-commits
mailing list