~sirn/aur-clean-chroot-manager-artix

76a736fb8a3adf1f92a1973a300f177ed31adecc — Kridsada Thanabulpong 6 months ago 0794267 master
Replace arch-nspawn with artools-chroot
2 files changed, 27 insertions(+), 3 deletions(-)

M PKGBUILD
M patch_common_clean-chroot-manager64_in.patch
M PKGBUILD => PKGBUILD +1 -1
@@ 16,7 16,7 @@ replaces=('clean_chroot_manager')
source=("$pkgname-$pkgver.tar.gz::https://github.com/graysky2/clean-chroot-manager/archive/v$pkgver.tar.gz"
        "patch_common_clean-chroot-manager64_in.patch")
sha256sums=('3bbe344f92914a490f61c6fcb95189f4c95dacee45da975bf9c530e8fe867806'
            '77953dded8dfce66a32ba1dcfcac87b99b3e895f26da40e3c659ec920901144e')
            'd425d5af53756d689277421f81c7f281ef8cf2b4d3b22b5a1d90b6310c29160d')
install=ccm.install

build() {

M patch_common_clean-chroot-manager64_in.patch => patch_common_clean-chroot-manager64_in.patch +26 -2
@@ 1,5 1,5 @@
--- common/clean-chroot-manager64.in.orig	2019-07-26 03:38:28.100255910 +0700
+++ common/clean-chroot-manager64.in	2019-07-26 03:37:31.803591370 +0700
+++ common/clean-chroot-manager64.in	2019-07-26 04:08:02.626856477 +0700
@@ -53,8 +53,8 @@
 CFGFILE=${CFGFILE:-$HOMEDIR/.config/$PKG.conf}
 


@@ 87,7 87,31 @@
       exit 1
     fi
   fi
@@ -392,7 +392,7 @@
@@ -337,7 +337,7 @@
 update() {
   local mesg="Updating the chroot..."
   echo -e "${YELLOW}---->${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}"
-  arch-nspawn "$CHROOTPATH64"/root pacman -Syu --noconfirm
+  artools-chroot "$CHROOTPATH64"/root pacman -Syu --noconfirm
 }
 
 repocheck() {
@@ -376,7 +376,7 @@
       -i -e '/^\[community-testing\]/{$!N; s,#,,}' "$CHROOTPATH64"/root/etc/pacman.conf
     local mesg="Forcing an update to use any affected packages..."
     echo -e "${YELLOW}---->${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}"
-    arch-nspawn "$CHROOTPATH64"/root pacman -Syu --noconfirm
+    artools-chroot "$CHROOTPATH64"/root pacman -Syu --noconfirm
   elif [[ "$TESTING" = "Enabled" ]]; then
     # switch off testing
     local mesg="Disabling [testing] in chroot..."
@@ -387,12 +387,12 @@
       -i -e '/^#\[community-testing\]/{$!N; s,I,#I,}' "$CHROOTPATH64"/root/etc/pacman.conf
     local mesg="Downgrading affected packages if any..."
     echo -e "${YELLOW}---->${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}"
-    arch-nspawn "$CHROOTPATH64"/root pacman -Syuu --noconfirm
+    artools-chroot "$CHROOTPATH64"/root pacman -Syuu --noconfirm
   fi
 }
 
 preview() {