GitHubのミラーです
https://github.com/FascodeNet/alterlinux-repository
Revisión | 2533e000938b02d2f2d0b0f71e71f6032bce8fa7 (tree) |
---|---|
Tiempo | 2021-04-12 13:43:57 |
Autor | hayao <hayao@fasc...> |
Commiter | hayao |
[update] : makepkg.conf
@@ -20,6 +20,7 @@ repo_name="alter-stable" | ||
20 | 20 | |
21 | 21 | work_dir="${script_path}/work" |
22 | 22 | repo_dir="${script_path}/repo" |
23 | +makepkg_conf="/etc/makepkg.conf" | |
23 | 24 | |
24 | 25 | debug=false |
25 | 26 | nocolor=false |
@@ -49,6 +50,7 @@ _usage() { | ||
49 | 50 | echo " -h | --help Show this help message" |
50 | 51 | echo |
51 | 52 | echo " --nocolor No colored output." |
53 | + echo " --makepkg-conf Specift the config file for makepkg" | |
52 | 54 | echo |
53 | 55 | echo " list List packages" |
54 | 56 | echo " build Build all packages" |
@@ -323,7 +325,7 @@ build() { | ||
323 | 325 | |
324 | 326 | cd "${pkg}" |
325 | 327 | 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}" | |
327 | 329 | mv *.pkg.tar.* "${work_dir}/pkgs/${repo_name}/${_arch}/" |
328 | 330 | touch "${work_dir}/lockfile/${repo_name}/${_arch}/${pkg}" |
329 | 331 | else |
@@ -366,7 +368,7 @@ fi | ||
366 | 368 | |
367 | 369 | options="${@}" |
368 | 370 | _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:" | |
370 | 372 | OPT=$(getopt -o ${_opt_short} -l ${_opt_long} -- "${@}") |
371 | 373 | if [[ ${?} != 0 ]]; then |
372 | 374 | exit 1 |
@@ -419,6 +421,10 @@ while :; do | ||
419 | 421 | skip_pkg=(${2}) |
420 | 422 | shift 2 |
421 | 423 | ;; |
424 | + --makepkg-conf) | |
425 | + makepkg_conf="${2}" | |
426 | + shift 2 | |
427 | + ;; | |
422 | 428 | --) |
423 | 429 | shift 1 |
424 | 430 | break |