OSDN Git Service

[update] : Added comments.
authorhayao <shun819.mail@gmail.com>
Fri, 10 Jul 2020 09:58:42 +0000 (18:58 +0900)
committerhayao <shun819.mail@gmail.com>
Fri, 10 Jul 2020 09:58:42 +0000 (18:58 +0900)
build.sh
system/PKGBUILD_DEPENDS_INSTALL.sh

index a993f96..51d5fe3 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -924,13 +924,21 @@ make_packages_aur() {
         _aur_packages_ls_str="${_aur_packages_ls_str} ${_pkg}"
     done
 
+    # Create user to build AUR
     ${mkalteriso} ${mkalteriso_option} -w "${work_dir}/${arch}"  -D "${install_dir}" -r "/root/aur_prepare.sh ${_aur_packages_ls_str}" run
+
+    # Install dependent packages.
     "${script_path}/system/PKGBUILD_DEPENDS_INSTALL.sh" "${work_dir}/pacman-${arch}.conf" "${work_dir}/${arch}/airootfs" ${_aur_packages_ls_str}
+
+    # Build the package using makepkg.
     ${mkalteriso} ${mkalteriso_option} -w "${work_dir}/${arch}"  -D "${install_dir}" -r "/root/aur_install.sh ${_aur_packages_ls_str}" run
   
+    # Install the built package file.
     for _pkg in ${pkglist_aur[@]}; do
         ${mkalteriso} ${mkalteriso_option} -w "${work_dir}/${arch}" -C "${work_dir}/pacman-${arch}.conf" -D "${install_dir}" -p "${work_dir}/${arch}/airootfs/aurbuild_temp/${_pkg}/*.pkg.tar.*" install_file
     done
+
+    Delete the user created for the build.
     ${mkalteriso} ${mkalteriso_option} -w "${work_dir}/${arch}"  -D "${install_dir}" -r "/root/aur_remove.sh" run
 }
 
index 69e19e8..2cd9291 100755 (executable)
@@ -14,7 +14,7 @@ script_path="$(readlink -f ${0%/*})"
 if [ 3 -gt ${#} ];then
     echo "Error !"
     echo "You must set option."
-    echo "./PKGBUILD_DEPENDS_INSTALL.sh [pacman_conf] [airootfs] [packages.....]"
+    echo "PKGBUILD_DEPENDS_INSTALL.sh [pacman_conf] [airootfs] [packages.....]"
     exit 1
 fi
 pacman_conf_path="${1}"