Date: Sunday, February 13, 2022 @ 20:08:32
  Author: kgizdov
Revision: 1133089

archrelease: copy trunk to community-x86_64

Added:
  dune/repos/community-x86_64/PKGBUILD
    (from rev 1133088, dune/trunk/PKGBUILD)
Deleted:
  dune/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   90 +++++++++++++++++++++++++++++++++++--------------------------
 1 file changed, 53 insertions(+), 37 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2022-02-13 20:08:26 UTC (rev 1133088)
+++ PKGBUILD    2022-02-13 20:08:32 UTC (rev 1133089)
@@ -1,37 +0,0 @@
-# Maintainer: Konstantin Gizdov <arch at kge dot pw>
-# Maintainer: Bruno Pagani <archa...@archlinux.org>
-# Contributor: Jakob Gahde <j...@fmail.co.uk>
-
-pkgname=dune
-pkgver=2.9.3
-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>=4.13.1' 'ocaml-findlib' 'ocaml-csexp')
-source=("${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
-sha512sums=('df6e06a9beebf41f3ed375384be781b5c87c7949048995cc0bbad13dd65c96bd8b27415cd41e43b1112bd86524a59a7dd418e14b5c72b4f1f8fd4ac5ca2d1494')
-
-build() {
-    cd "${srcdir}/${pkgname}-${pkgver}"
-    make dune.exe  # this runs `ocaml bootstrap.ml`, but keeps upstream's 
choice
-    
dune_release_pkgs='dune,dune-action-plugin,dune-build-info,dune-configurator,dune-glob,dune-private-libs,dune-site'
-    ./dune.exe build -p "${dune_release_pkgs}" --profile dune-bootstrap
-}
-
-# Tests require a bunch of (currently) unpackaged dependencies
-# check() {
-#     cd "${srcdir}/${pkgname}-${pkgver}"
-#     make test
-# }
-
-package() {
-    cd "${srcdir}/${pkgname}-${pkgver}"
-
-    DESTDIR="${pkgdir}" ./dune.exe install --prefix "/usr" 
--libdir=$(ocamlfind printconf destdir)
-    # Fix doc and man install
-    rm -r "${pkgdir}"/usr/doc
-    install -dm755 "${pkgdir}"/usr/share
-    mv "${pkgdir}"/usr/{man,share/}
-}

Copied: dune/repos/community-x86_64/PKGBUILD (from rev 1133088, 
dune/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2022-02-13 20:08:32 UTC (rev 1133089)
@@ -0,0 +1,53 @@
+# Maintainer: Konstantin Gizdov <arch at kge dot pw>
+# Maintainer: Bruno Pagani <archa...@archlinux.org>
+# Contributor: Jakob Gahde <j...@fmail.co.uk>
+
+pkgname=dune
+pkgver=3.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>=4.13.1' 'ocaml-csexp' 'ocaml-pp')
+source=("${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('5b1b8a30bd6a211c1c6ba02c2843d31b2d5ae2f1dfcbaa4eba3e23dbf38a2c6b2de996a187e4efe6d0a37fd6c4e522bc246fcc2017c905461555b579c5fb9277')
+
+_dune_release_pkgs=('dune' 'dune-action-plugin' 'dune-build-info' 
'dune-configurator' 'dune-glob' 'dune-private-libs' 'dune-site' 'dyn' 'stdune' 
'ordering' 'xdg' 'fiber')
+
+build() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+    make dune.exe  # this runs `ocaml bootstrap.ml`, but keeps upstream's 
choice
+
+    # dune build needs a comma separated list of packages
+    local dune_release_pkgs='dummy'
+    for _pkg in "${_dune_release_pkgs[@]}"; do
+      dune_release_pkgs+=",${_pkg}"
+    done
+    dune_release_pkgs="${dune_release_pkgs#dummy,}"
+    echo "Building packages: ${dune_release_pkgs}"
+
+    ./dune.exe build -p "${dune_release_pkgs}" --profile dune-bootstrap
+}
+
+# Tests require a bunch of (currently) unpackaged dependencies
+# check() {
+#     cd "${srcdir}/${pkgname}-${pkgver}"
+#     make test
+# }
+
+package() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+
+    # we need to install packages one by one
+       for _pkg in "${_dune_release_pkgs[@]}"; do
+      ./dune.exe install "${_pkg}" --destdir="${pkgdir}" --prefix="/usr" 
--libdir="$(ocamlfind printconf destdir)"
+    done
+
+    # Fix doc and man install
+    install -d "${pkgdir}"/usr/share
+    mv "${pkgdir}"/usr/{doc,share/}
+    mv "${pkgdir}"/usr/{man,share/}
+    install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
+    ln -s /usr/share/doc/pp/LICENSE.md 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}

Reply via email to