[arch-commits] Commit in dune/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sun Mar 22 12:15:04 UTC 2020
Date: Sunday, March 22, 2020 @ 12:15:03
Author: felixonmars
Revision: 603486
archrelease: copy trunk to community-testing-x86_64
Added:
dune/repos/community-testing-x86_64/
dune/repos/community-testing-x86_64/PKGBUILD
(from rev 603485, dune/trunk/PKGBUILD)
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Copied: dune/repos/community-testing-x86_64/PKGBUILD (from rev 603485, dune/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2020-03-22 12:15:03 UTC (rev 603486)
@@ -0,0 +1,35 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+# Contributor: Jakob Gahde <j5lx at fmail.co.uk>
+
+pkgname=dune
+pkgver=2.0.0
+pkgrel=1
+pkgdesc="A composable build system for OCaml (formerly jbuilder)"
+arch=(x86_64)
+url="https://github.com/ocaml/dune"
+license=(Apache)
+depends=(glibc ocaml ocaml-findlib)
+source=("${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('df6ef6f9c21e68ec4836c3e2197c9acc3763eb969a3e855e0e60374f200971cf5ae92fa1926f683e3e6be9acbdcb37ac87e4d03dae648695c22fde8eed44a1f3')
+
+build() {
+ cd ${pkgname}-${pkgver}
+ make release
+}
+
+# Tests requires a bunch of (currently) unpackaged dependencies
+#check() {
+# cd ${pkgname}-${pkgver/b/-beta}
+# make test
+#}
+
+package() {
+ cd ${pkgname}-${pkgver}
+
+ make DESTDIR="${pkgdir}" INSTALL_ARGS="--prefix=/usr --libdir='$(ocamlfind printconf destdir)'" install
+
+ # Fix doc and man install
+ rm -r "${pkgdir}"/usr/doc
+ install -dm755 "${pkgdir}"/usr/share
+ mv "${pkgdir}"/usr/{man,share/}
+}
More information about the arch-commits
mailing list