mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 07:48:50 -05:00
Add --noprepare option to makepkg
This new option disables the prepare function. Useful in combination with -o to get an unpatched copy of the sources for testing purpose. Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
b8c8447971
commit
9de33488bf
@ -77,7 +77,7 @@ _makepkg() {
|
|||||||
if [[ $cur = -* && ! $prev =~ ^-(-(config|help)$|\w*[Chp]) ]]; then
|
if [[ $cur = -* && ! $prev =~ ^-(-(config|help)$|\w*[Chp]) ]]; then
|
||||||
opts=('allsource asdeps asroot check clean config force geninteg help holdver ignorearch
|
opts=('allsource asdeps asroot check clean config force geninteg help holdver ignorearch
|
||||||
install key log needed nobuild nocheck nocolor noconfirm nodeps noextract
|
install key log needed nobuild nocheck nocolor noconfirm nodeps noextract
|
||||||
noprogressbar nosign pkg repackage rmdeps sign skipchecksums skipinteg
|
noprepare noprogressbar nosign pkg repackage rmdeps sign skipchecksums skipinteg
|
||||||
skippgpcheck source syncdeps verifysource version'
|
skippgpcheck source syncdeps verifysource version'
|
||||||
'A L R S c d e f g h i m o p r s')
|
'A L R S c d e f g h i m o p r s')
|
||||||
_arch_ptr2comp opts
|
_arch_ptr2comp opts
|
||||||
|
@ -583,6 +583,7 @@ _makepkg_longopts=(
|
|||||||
'--holdver[Prevent automatic version bumping for development PKGBUILDs]'
|
'--holdver[Prevent automatic version bumping for development PKGBUILDs]'
|
||||||
'--key[Specify key to use for gpg signing instead of the default]: :_keys'
|
'--key[Specify key to use for gpg signing instead of the default]: :_keys'
|
||||||
'--nocheck[Do not run the check() function in the PKGBUILD]'
|
'--nocheck[Do not run the check() function in the PKGBUILD]'
|
||||||
|
'--noprepare[Do not run the prepare() function in the PKGBUILD]'
|
||||||
'--nosign[Do not create a signature for the package]'
|
'--nosign[Do not create a signature for the package]'
|
||||||
'--pkg[Only build listed packages from a split package]'
|
'--pkg[Only build listed packages from a split package]'
|
||||||
'--sign[Sign the resulting package with gpg]'
|
'--sign[Sign the resulting package with gpg]'
|
||||||
|
@ -162,6 +162,9 @@ Options
|
|||||||
*\--nocheck*::
|
*\--nocheck*::
|
||||||
Do not run the check() function in the PKGBUILD or handle the checkdepends.
|
Do not run the check() function in the PKGBUILD or handle the checkdepends.
|
||||||
|
|
||||||
|
*\--noprepare*::
|
||||||
|
Do not run the prepare() function in the PKGBUILD.
|
||||||
|
|
||||||
*\--sign*::
|
*\--sign*::
|
||||||
Sign the resulting package with gpg, overriding the setting in
|
Sign the resulting package with gpg, overriding the setting in
|
||||||
linkman:makepkg.conf[5].
|
linkman:makepkg.conf[5].
|
||||||
|
@ -2483,6 +2483,7 @@ usage() {
|
|||||||
printf -- "$(gettext " --holdver Do not update VCS sources")\n"
|
printf -- "$(gettext " --holdver Do not update VCS sources")\n"
|
||||||
printf -- "$(gettext " --key <key> Specify a key to use for %s signing instead of the default")\n" "gpg"
|
printf -- "$(gettext " --key <key> Specify a key to use for %s signing instead of the default")\n" "gpg"
|
||||||
printf -- "$(gettext " --nocheck Do not run the %s function in the %s")\n" "check()" "$BUILDSCRIPT"
|
printf -- "$(gettext " --nocheck Do not run the %s function in the %s")\n" "check()" "$BUILDSCRIPT"
|
||||||
|
printf -- "$(gettext " --noprepare Do not run the %s function in the %s")\n" "prepare()" "$BUILDSCRIPT"
|
||||||
printf -- "$(gettext " --nosign Do not create a signature for the package")\n"
|
printf -- "$(gettext " --nosign Do not create a signature for the package")\n"
|
||||||
printf -- "$(gettext " --pkg <list> Only build listed packages from a split package")\n"
|
printf -- "$(gettext " --pkg <list> Only build listed packages from a split package")\n"
|
||||||
printf -- "$(gettext " --sign Sign the resulting package with %s")\n" "gpg"
|
printf -- "$(gettext " --sign Sign the resulting package with %s")\n" "gpg"
|
||||||
@ -2525,7 +2526,7 @@ ARGLIST=("$@")
|
|||||||
OPT_SHORT="AcdefFghiLmop:rRsSV"
|
OPT_SHORT="AcdefFghiLmop:rRsSV"
|
||||||
OPT_LONG=('allsource' 'asroot' 'check' 'clean' 'config:' 'force' 'geninteg'
|
OPT_LONG=('allsource' 'asroot' 'check' 'clean' 'config:' 'force' 'geninteg'
|
||||||
'help' 'holdver' 'ignorearch' 'install' 'key:' 'log' 'nobuild' 'nocolor'
|
'help' 'holdver' 'ignorearch' 'install' 'key:' 'log' 'nobuild' 'nocolor'
|
||||||
'nocheck' 'nodeps' 'noextract' 'nosign' 'pkg:' 'repackage' 'rmdeps'
|
'nocheck' 'nodeps' 'noextract' 'noprepare' 'nosign' 'pkg:' 'repackage' 'rmdeps'
|
||||||
'sign' 'skipchecksums' 'skipinteg' 'skippgpcheck' 'source' 'syncdeps'
|
'sign' 'skipchecksums' 'skipinteg' 'skippgpcheck' 'source' 'syncdeps'
|
||||||
'verifysource' 'version')
|
'verifysource' 'version')
|
||||||
|
|
||||||
@ -2564,6 +2565,7 @@ while true; do
|
|||||||
-L|--log) LOGGING=1 ;;
|
-L|--log) LOGGING=1 ;;
|
||||||
-m|--nocolor) USE_COLOR='n' ;;
|
-m|--nocolor) USE_COLOR='n' ;;
|
||||||
--nocheck) RUN_CHECK='n' ;;
|
--nocheck) RUN_CHECK='n' ;;
|
||||||
|
--noprepare) RUN_PREPARE='n' ;;
|
||||||
--nosign) SIGNPKG='n' ;;
|
--nosign) SIGNPKG='n' ;;
|
||||||
-o|--nobuild) NOBUILD=1 ;;
|
-o|--nobuild) NOBUILD=1 ;;
|
||||||
-p) shift; BUILDFILE=$1 ;;
|
-p) shift; BUILDFILE=$1 ;;
|
||||||
@ -2796,7 +2798,10 @@ fi
|
|||||||
|
|
||||||
# test for available PKGBUILD functions
|
# test for available PKGBUILD functions
|
||||||
if declare -f prepare >/dev/null; then
|
if declare -f prepare >/dev/null; then
|
||||||
PREPAREFUNC=1
|
# "Hide" prepare() function if not going to be run
|
||||||
|
if [[ $RUN_PREPARE != "n" ]]; then
|
||||||
|
PREPAREFUNC=1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
if declare -f build >/dev/null; then
|
if declare -f build >/dev/null; then
|
||||||
BUILDFUNC=1
|
BUILDFUNC=1
|
||||||
|
@ -18,7 +18,7 @@ fi
|
|||||||
OPT_SHORT="AcdefFghiLmop:rRsV"
|
OPT_SHORT="AcdefFghiLmop:rRsV"
|
||||||
OPT_LONG=('allsource' 'asroot' 'ignorearch' 'check' 'clean:' 'cleanall' 'nodeps'
|
OPT_LONG=('allsource' 'asroot' 'ignorearch' 'check' 'clean:' 'cleanall' 'nodeps'
|
||||||
'noextract' 'force' 'forcever:' 'geninteg' 'help' 'holdver'
|
'noextract' 'force' 'forcever:' 'geninteg' 'help' 'holdver'
|
||||||
'install' 'key:' 'log' 'nocolor' 'nobuild' 'nocheck' 'nosign' 'pkg:' 'rmdeps'
|
'install' 'key:' 'log' 'nocolor' 'nobuild' 'nocheck' 'noprepare' 'nosign' 'pkg:' 'rmdeps'
|
||||||
'repackage' 'skipinteg' 'sign' 'source' 'syncdeps' 'version' 'config:'
|
'repackage' 'skipinteg' 'sign' 'source' 'syncdeps' 'version' 'config:'
|
||||||
'noconfirm' 'noprogressbar')
|
'noconfirm' 'noprogressbar')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user