Add makepkg -S which is an alias to makepkg --source
makepkg --source is a often used go make source package like for AUR. Have a -S shortcut will save the world. Signed-off-by: Sebastien Luttringer <seblu@seblu.net> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
d18e600952
commit
4a7f3bbc46
3 changed files with 11 additions and 11 deletions
|
@ -35,7 +35,7 @@ _makepkg() {
|
||||||
opts=('allsource asroot check clean config force geninteg help holdver ignorearch
|
opts=('allsource asroot check clean config force geninteg help holdver ignorearch
|
||||||
install log nobuild nocheck nocolor noconfirm nodeps noextract noprogressbar
|
install log nobuild nocheck nocolor noconfirm nodeps noextract noprogressbar
|
||||||
nosign pkg repackage rmdeps sign skipinteg source syncdeps'
|
nosign pkg repackage rmdeps sign skipinteg source syncdeps'
|
||||||
'A L R 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
|
||||||
fi
|
fi
|
||||||
true
|
true
|
||||||
|
|
|
@ -138,6 +138,13 @@ Options
|
||||||
dependencies are not found, pacman will try to resolve them. If
|
dependencies are not found, pacman will try to resolve them. If
|
||||||
successful, the missing packages will be downloaded and installed.
|
successful, the missing packages will be downloaded and installed.
|
||||||
|
|
||||||
|
*-S, \--source*::
|
||||||
|
Do not actually build the package, but build a source-only tarball that
|
||||||
|
does not include sources that can be fetched via a download URL. This is
|
||||||
|
useful for passing a single tarball to another program such as a chroot,
|
||||||
|
remote builder, or a tarball upload. Because integrity checks are verified,
|
||||||
|
all source files of the package need to be present or downloadable.
|
||||||
|
|
||||||
*\--allsource*::
|
*\--allsource*::
|
||||||
Do not actually build the package, but build a source-only tarball that
|
Do not actually build the package, but build a source-only tarball that
|
||||||
includes all sources, including those that are normally download via
|
includes all sources, including those that are normally download via
|
||||||
|
@ -145,13 +152,6 @@ Options
|
||||||
such as a chroot or remote builder. It will also satisfy requirements of
|
such as a chroot or remote builder. It will also satisfy requirements of
|
||||||
the GPL when distributing binary packages.
|
the GPL when distributing binary packages.
|
||||||
|
|
||||||
*\--source*::
|
|
||||||
Do not actually build the package, but build a source-only tarball that
|
|
||||||
does not include sources that can be fetched via a download URL. This is
|
|
||||||
useful for passing a single tarball to another program such as a chroot,
|
|
||||||
remote builder, or a tarball upload. Because integrity checks are verified,
|
|
||||||
all source files of the package need to be present or downloadable.
|
|
||||||
|
|
||||||
*\--pkg <list>*::
|
*\--pkg <list>*::
|
||||||
Only build listed packages from a split package.
|
Only build listed packages from a split package.
|
||||||
|
|
||||||
|
|
|
@ -1844,6 +1844,7 @@ usage() {
|
||||||
echo "$(gettext " -r, --rmdeps Remove installed dependencies after a successful build")"
|
echo "$(gettext " -r, --rmdeps Remove installed dependencies after a successful build")"
|
||||||
echo "$(gettext " -R, --repackage Repackage contents of the package without rebuilding")"
|
echo "$(gettext " -R, --repackage Repackage contents of the package without rebuilding")"
|
||||||
printf "$(gettext " -s, --syncdeps Install missing dependencies with %s")\n" "pacman"
|
printf "$(gettext " -s, --syncdeps Install missing dependencies with %s")\n" "pacman"
|
||||||
|
echo "$(gettext " -S, --source Generate a source-only tarball without downloaded sources")"
|
||||||
echo "$(gettext " --allsource Generate a source-only tarball including downloaded sources")"
|
echo "$(gettext " --allsource Generate a source-only tarball including downloaded sources")"
|
||||||
printf "$(gettext " --asroot Allow %s to run as root user")\n" "makepkg"
|
printf "$(gettext " --asroot Allow %s to run as root user")\n" "makepkg"
|
||||||
printf "$(gettext " --check Run the %s function in the %s")\n" "check()" "$BUILDSCRIPT"
|
printf "$(gettext " --check Run the %s function in the %s")\n" "check()" "$BUILDSCRIPT"
|
||||||
|
@ -1857,7 +1858,6 @@ usage() {
|
||||||
echo "$(gettext " --skipchecksums Do not verify checksums of the source files")"
|
echo "$(gettext " --skipchecksums Do not verify checksums of the source files")"
|
||||||
echo "$(gettext " --skipinteg Do not perform any verification checks on source files")"
|
echo "$(gettext " --skipinteg Do not perform any verification checks on source files")"
|
||||||
echo "$(gettext " --skippgpcheck Do not verify source files with PGP signatures")"
|
echo "$(gettext " --skippgpcheck Do not verify source files with PGP signatures")"
|
||||||
echo "$(gettext " --source Generate a source-only tarball without downloaded sources")"
|
|
||||||
echo
|
echo
|
||||||
printf "$(gettext "These options can be passed to %s:")\n" "pacman"
|
printf "$(gettext "These options can be passed to %s:")\n" "pacman"
|
||||||
echo
|
echo
|
||||||
|
@ -1889,7 +1889,7 @@ fi
|
||||||
ARGLIST=("$@")
|
ARGLIST=("$@")
|
||||||
|
|
||||||
# Parse Command Line Options.
|
# Parse Command Line Options.
|
||||||
OPT_SHORT="AcdefFghiLmop:rRsV"
|
OPT_SHORT="AcdefFghiLmop:rRsSV"
|
||||||
OPT_LONG="allsource,asroot,ignorearch,check,clean,nodeps"
|
OPT_LONG="allsource,asroot,ignorearch,check,clean,nodeps"
|
||||||
OPT_LONG+=",noextract,force,forcever:,geninteg,help,holdver,skippgpcheck"
|
OPT_LONG+=",noextract,force,forcever:,geninteg,help,holdver,skippgpcheck"
|
||||||
OPT_LONG+=",install,key:,log,nocolor,nobuild,nocheck,nosign,pkg:,rmdeps"
|
OPT_LONG+=",install,key:,log,nocolor,nobuild,nocheck,nosign,pkg:,rmdeps"
|
||||||
|
@ -1940,8 +1940,8 @@ while true; do
|
||||||
--skipinteg) SKIPCHECKSUMS=1; SKIPPGPCHECK=1 ;;
|
--skipinteg) SKIPCHECKSUMS=1; SKIPPGPCHECK=1 ;;
|
||||||
--skippgpcheck) SKIPPGPCHECK=1;;
|
--skippgpcheck) SKIPPGPCHECK=1;;
|
||||||
--sign) SIGNPKG='y' ;;
|
--sign) SIGNPKG='y' ;;
|
||||||
--source) SOURCEONLY=1 ;;
|
|
||||||
-s|--syncdeps) DEP_BIN=1 ;;
|
-s|--syncdeps) DEP_BIN=1 ;;
|
||||||
|
-S|--source) SOURCEONLY=1 ;;
|
||||||
|
|
||||||
-h|--help) usage; exit 0 ;; # E_OK
|
-h|--help) usage; exit 0 ;; # E_OK
|
||||||
-V|--version) version; exit 0 ;; # E_OK
|
-V|--version) version; exit 0 ;; # E_OK
|
||||||
|
|
Loading…
Add table
Reference in a new issue