[arch-commits] Commit in supermin/repos (3 files)

Robin Broda coderobe at archlinux.org
Sun Mar 21 05:44:39 UTC 2021


    Date: Sunday, March 21, 2021 @ 05:44:39
  Author: coderobe
Revision: 896939

archrelease: copy trunk to community-testing-x86_64

Added:
  supermin/repos/community-testing-x86_64/
  supermin/repos/community-testing-x86_64/PKGBUILD
    (from rev 896938, supermin/trunk/PKGBUILD)
  supermin/repos/community-testing-x86_64/pacman-iter.patch
    (from rev 896938, supermin/trunk/pacman-iter.patch)

-------------------+
 PKGBUILD          |   32 ++++++++++++++++++++++++
 pacman-iter.patch |   67 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 99 insertions(+)

Copied: supermin/repos/community-testing-x86_64/PKGBUILD (from rev 896938, supermin/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2021-03-21 05:44:39 UTC (rev 896939)
@@ -0,0 +1,32 @@
+# Maintainer: Robin Broda <coderobe @ archlinux.org>
+# Contributor: Xiao-Long Chen <chenxiaolong at cxl.epac.to>
+# Contributor:  Achilleas Pipinellis <axilleas archlinux gr>
+
+pkgname=supermin
+pkgver=5.2.1
+pkgrel=1
+pkgdesc="Tool for creating supermin appliances"
+arch=('x86_64')
+url="http://people.redhat.com/~rjones/supermin/"
+license=('GPL')
+makedepends=('ocaml' 'ocaml-findlib')
+depends=('e2fsprogs' 'pacman' 'pacman-contrib' 'cpio')
+conflicts=('febootstrap<=3.21')
+source=("http://download.libguestfs.org/${pkgname}/5.2-stable/${pkgname}-${pkgver}.tar.gz"{,.sig})
+sha512sums=('f10ea404e0b27238ea3c25cb68f44e716aa180a45a420e63c1958768032f0710e8e3e7f1346cda780ea1f916f499499da2c02df4019d91ea3b3a69b75cfda545'
+            'SKIP')
+validpgpkeys=('F7774FB1AD074A7E8C8767EA91738F73E1B768A0') # Richard W.M. Jones <rjones at redhat.com>
+
+build() {
+  cd "${pkgname}-${pkgver}"
+
+  ./configure --prefix=/usr
+
+  make
+}
+
+package() {
+  cd "${pkgname}-${pkgver}"
+
+  make DESTDIR="${pkgdir}/" install
+}

Copied: supermin/repos/community-testing-x86_64/pacman-iter.patch (from rev 896938, supermin/trunk/pacman-iter.patch)
===================================================================
--- community-testing-x86_64/pacman-iter.patch	                        (rev 0)
+++ community-testing-x86_64/pacman-iter.patch	2021-03-21 05:44:39 UTC (rev 896939)
@@ -0,0 +1,67 @@
+--- a/supermin/src/ph_pacman.ml	2019-10-14 21:28:25.138769513 +0200
++++ b/supermin/src/ph_pacman.ml	2019-10-14 21:33:31.479364225 +0200
+@@ -171,24 +171,25 @@
+    * only downloads each package once, even though each call to pacman will
+    * download dependent packages as well.
+    *)
+-  List.iter (
+-    fun name ->
+-      let cmd = sprintf "\
+-        set -e
+-        umask 0000
+-        cd %s
+-        mkdir -p var/lib/pacman
+-        %s %s%s -Syw --noconfirm --cachedir=$(pwd) --root=$(pwd) %s
+-      "
+-        (quote tdir)
+-        Config.fakeroot Config.pacman
+-        (match !settings.packager_config with
+-         | None -> ""
+-         | Some filename -> " --config " ^ (quote filename))
+-        (quoted_list names) in
+-      if !settings.debug >= 2 then printf "%s" cmd;
+-      if Sys.command cmd <> 0 then (
+-        (* The package may not be in the main repos, check the AUR. *)
++  let cmd = sprintf "\
++    set -e
++    umask 0000
++    cd %s
++    mkdir -p var/lib/pacman
++    pacman-conf | grep -v CacheDir > tmp.conf
++    %s %s%s -Syw --noconfirm --cachedir=$(pwd) --root=$(pwd) %s
++  "
++    (quote tdir)
++    Config.fakeroot Config.pacman
++    (match !settings.packager_config with
++     | None -> " --config tmp.conf --dbpath var/lib/pacman"
++     | Some filename -> " --config " ^ (quote filename))
++    (quoted_list names) in
++  if !settings.debug >= 2 then printf "%s" cmd;
++  if Sys.command cmd <> 0 then (
++    (* The package may not be in the main repos, check the AUR. *)
++    List.iter (
++      fun name ->
+         let cmd = sprintf "\
+           set -e
+           umask 0000
+@@ -201,16 +201,16 @@
+        "
+           (quote tdir)
+           (quote ("https://aur.archlinux.org/packages/" ^
+-	          (String.sub name 0 2) ^
+-	          "/" ^ name ^ "/" ^ name ^ ".tar.gz"))
++            (String.sub name 0 2) ^
++            "/" ^ name ^ "/" ^ name ^ ".tar.gz"))
+           (quote (name ^ ".tar.gz"))
+           (quote name) (* cd *)
+           Config.makepkg
+           (quote name) (quote tdir) (* mv *) in
+         if !settings.debug >= 2 then printf "%s" cmd;
+         run_command cmd
+-      );
+-  ) names;
++    ) names;
++  );
+ 
+   (* Unpack the downloaded packages. *)
+   let cmd =



More information about the arch-commits mailing list