Skip to content

Commit 45d3943

Browse files
committed
[update] : Added --nopkgbuild
1 parent 5f61363 commit 45d3943

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

build.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ _usage () {
183183
echo " --nodepend No check package dependencies before building"
184184
echo " --noiso No build iso image (Use with --tarball)"
185185
echo " --normwork No remove working dir"
186+
echo " --nopkgbuild Ignore PKGBUILD (Use only for debugging)"
186187
echo
187188
echo " Many packages are installed from AUR, so specifying --noaur can cause problems."
188189
echo
@@ -1079,7 +1080,7 @@ make_iso() {
10791080
# Parse options
10801081
ARGUMENT="${@}"
10811082
OPTS="a:bc:deg:hjk:l:o:p:rt:u:w:x"
1082-
OPTL="arch:,boot-splash,comp-type:,debug,cleaning,cleanup,gpgkey:,help,lang:,japanese,kernel:,out:,password:,comp-opts:,user:,work:,bash-debug,nocolor,noconfirm,nodepend,gitversion,msgdebug,noloopmod,tarball,noiso,noaur,nochkver,channellist,config:,noefi,nodebug,nosigcheck,normwork,log,logpath:,nolog"
1083+
OPTL="arch:,boot-splash,comp-type:,debug,cleaning,cleanup,gpgkey:,help,lang:,japanese,kernel:,out:,password:,comp-opts:,user:,work:,bash-debug,nocolor,noconfirm,nodepend,gitversion,msgdebug,noloopmod,tarball,noiso,noaur,nochkver,channellist,config:,noefi,nodebug,nosigcheck,normwork,log,logpath:,nolog,nopkgbuild"
10831084
if ! OPT=$(getopt -o ${OPTS} -l ${OPTL} -- ${DEFAULT_ARGUMENT} ${ARGUMENT}); then
10841085
exit 1
10851086
fi
@@ -1247,6 +1248,10 @@ while :; do
12471248
logging=false
12481249
shift 1
12491250
;;
1251+
--nopkgbuild)
1252+
nopkgbuild=true
1253+
shift 1
1254+
;;
12501255
--)
12511256
shift
12521257
break
@@ -1338,7 +1343,7 @@ run_once make_pacman_conf
13381343
run_once make_basefs # Mount airootfs
13391344
run_once make_packages_repo
13401345
[[ "${noaur}" = false ]] && run_once make_packages_aur
1341-
run_once make_pkgbuild
1346+
[[ "${nopkgbuild}" = false ]] && run_once make_pkgbuild
13421347
run_once make_customize_airootfs
13431348
run_once make_setup_mkinitcpio
13441349
[[ "${tarball}" = true ]] && run_once make_tarball

default.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,11 @@ noiso=false
235235
# Change the default behavior of "--noaur".
236236
noaur=false
237237

238+
# Do not build and install from PKGBUILD
239+
# Change the default behavior of "--nopkgbuild".
240+
# Use this option only for debugging purposes or if you understand what you are trying to do.
241+
nopkgbuild=false
242+
238243
# Do not check pacman key
239244
# This option allows the installation of unsigned packages, which reduces security.
240245
# Use it for debugging only and never allow it permanently on channel config.

0 commit comments

Comments
 (0)