mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
makepkg: add support for PACKAGER environment var
Add support for overriding configuration in /etc/makepkg.conf and ~/.makepkg.conf by setting the environment variable PACKAGER similar to how SRCDEST and PKGDEST behave. Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
cb898be887
commit
5ba8b83b8b
@ -207,6 +207,10 @@ Environment Variables
|
||||
Folder where the downloaded sources will be stored. Overrides the
|
||||
corresponding value defined in linkman:makepkg.conf[5].
|
||||
|
||||
**PACKAGER=**"John Doe <john@doe.com>"::
|
||||
String to identify the creator of the resulting package. Overrides
|
||||
the corresponding value defined in linkman:makepkg.conf[5].
|
||||
|
||||
**BUILDDIR=**"/path/to/folder"::
|
||||
Folder where the package will be built. Overrides the corresponding
|
||||
value defined in linkman:makepkg.conf[5].
|
||||
|
@ -1962,6 +1962,7 @@ set -E
|
||||
[[ -n ${PKGEXT} ]] && _PKGEXT=${PKGEXT}
|
||||
[[ -n ${SRCEXT} ]] && _SRCEXT=${SRCEXT}
|
||||
[[ -n ${GPGKEY} ]] && _GPGKEY=${GPGKEY}
|
||||
[[ -n ${PACKAGER} ]] && _PACKAGER=${PACKAGER}
|
||||
|
||||
# default config is makepkg.conf
|
||||
MAKEPKG_CONF=${MAKEPKG_CONF:-$confdir/makepkg.conf}
|
||||
@ -2044,6 +2045,7 @@ SRCPKGDEST=${SRCPKGDEST:-$startdir} #default to $startdir if undefined
|
||||
PKGEXT=${_PKGEXT:-$PKGEXT}
|
||||
SRCEXT=${_SRCEXT:-$SRCEXT}
|
||||
GPGKEY=${_GPGKEY:-$GPGKEY}
|
||||
PACKAGER=${_PACKAGER:-$PACKAGER}
|
||||
|
||||
if (( HOLDVER )) && [[ -n $FORCE_VER ]]; then
|
||||
# The '\\0' is here to prevent gettext from thinking --holdver is an option
|
||||
|
Loading…
Reference in New Issue
Block a user