• R/O
  • HTTP
  • SSH
  • HTTPS

alterlinux-repository: Commit

GitHubのミラーです
https://github.com/FascodeNet/alterlinux-repository


Commit MetaInfo

Revisión2533e000938b02d2f2d0b0f71e71f6032bce8fa7 (tree)
Tiempo2021-04-12 13:43:57
Autorhayao <hayao@fasc...>
Commiterhayao

Log Message

[update] : makepkg.conf

Cambiar Resumen

Diferencia incremental

--- a/scripts/main.sh
+++ b/scripts/main.sh
@@ -20,6 +20,7 @@ repo_name="alter-stable"
2020
2121 work_dir="${script_path}/work"
2222 repo_dir="${script_path}/repo"
23+makepkg_conf="/etc/makepkg.conf"
2324
2425 debug=false
2526 nocolor=false
@@ -49,6 +50,7 @@ _usage() {
4950 echo " -h | --help Show this help message"
5051 echo
5152 echo " --nocolor No colored output."
53+ echo " --makepkg-conf Specift the config file for makepkg"
5254 echo
5355 echo " list List packages"
5456 echo " build Build all packages"
@@ -323,7 +325,7 @@ build() {
323325
324326 cd "${pkg}"
325327 if [[ ! -f "${work_dir}/lockfile/${repo_name}/${_arch}/${pkg}" ]] || [[ "${force}" = true ]]; then
326- makepkg --ignorearch --syncdeps --rmdeps --clean --cleanbuild --force --noconfirm --needed --skippgpcheck
328+ makepkg --ignorearch --syncdeps --rmdeps --clean --cleanbuild --force --noconfirm --needed --skippgpcheck --config "${makepkg_conf}"
327329 mv *.pkg.tar.* "${work_dir}/pkgs/${repo_name}/${_arch}/"
328330 touch "${work_dir}/lockfile/${repo_name}/${_arch}/${pkg}"
329331 else
@@ -366,7 +368,7 @@ fi
366368
367369 options="${@}"
368370 _opt_short="h,a:,g:,r:,w:,f,s:k:"
369-_opt_long="help,arch:,giturl:,repodir:,workdir:,force,force-repo,nocolor,skip:,gpgkey:"
371+_opt_long="help,arch:,giturl:,repodir:,workdir:,force,force-repo,nocolor,skip:,gpgkey:,makepkg-conf:"
370372 OPT=$(getopt -o ${_opt_short} -l ${_opt_long} -- "${@}")
371373 if [[ ${?} != 0 ]]; then
372374 exit 1
@@ -419,6 +421,10 @@ while :; do
419421 skip_pkg=(${2})
420422 shift 2
421423 ;;
424+ --makepkg-conf)
425+ makepkg_conf="${2}"
426+ shift 2
427+ ;;
422428 --)
423429 shift 1
424430 break
Show on old repository browser