mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-23 00:08:50 -05:00
makepkg: allow overriding pkgver and pkgrel in split packages
Fixing a single package within a split package requires the overriding or pkgrel. In very rare (but existing) cases, it is useful to override pkgver. Partial fix for FS#15955. Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
2c2596177d
commit
2020e6297b
@ -34,6 +34,8 @@ build() {
|
|||||||
|
|
||||||
package_pkg1() {
|
package_pkg1() {
|
||||||
# options and directives that can be overridden
|
# options and directives that can be overridden
|
||||||
|
pkgver=
|
||||||
|
pkgrel=
|
||||||
pkgdesc=""
|
pkgdesc=""
|
||||||
license=()
|
license=()
|
||||||
groups=()
|
groups=()
|
||||||
|
@ -275,9 +275,9 @@ name of the split package.
|
|||||||
|
|
||||||
All options and directives for the split packages default to the global values given
|
All options and directives for the split packages default to the global values given
|
||||||
within the PKGBUILD. However, some of these can be overridden within each split
|
within the PKGBUILD. However, some of these can be overridden within each split
|
||||||
package's packaging function. The following variables can be overridden: `pkgdesc`,
|
package's packaging function. The following variables can be overridden: `pkgver`,
|
||||||
`license`, `groups`, `depends`, `optdepends`, `provides`, `conflicts`, `replaces`,
|
`pkgrel`, `pkgdesc`, `license`, `groups`, `depends`, `optdepends`,
|
||||||
`backup`, `options`, `install` and `changelog`.
|
`provides`, `conflicts`, `replaces`, `backup`, `options`, `install` and `changelog`.
|
||||||
|
|
||||||
An optional global directive is available when building a split package:
|
An optional global directive is available when building a split package:
|
||||||
|
|
||||||
|
@ -46,8 +46,9 @@ pkgdir="$startdir/pkg"
|
|||||||
|
|
||||||
packaging_options=('strip' 'docs' 'libtool' 'emptydirs' 'zipman' 'purge')
|
packaging_options=('strip' 'docs' 'libtool' 'emptydirs' 'zipman' 'purge')
|
||||||
other_options=('ccache' 'distcc' 'makeflags' 'force')
|
other_options=('ccache' 'distcc' 'makeflags' 'force')
|
||||||
splitpkg_overrides=('pkgdesc' 'license' 'groups' 'depends' 'optdepends' 'provides' \
|
splitpkg_overrides=('pkgver' 'pkgrel' 'pkgdesc' 'license' 'groups' \
|
||||||
'conflicts' 'replaces' 'backup' 'options' 'install' 'changelog')
|
'depends' 'optdepends' 'provides' 'conflicts' 'replaces' \
|
||||||
|
'backup' 'options' 'install' 'changelog')
|
||||||
readonly -a packaging_options other_options splitpkg_overrides
|
readonly -a packaging_options other_options splitpkg_overrides
|
||||||
|
|
||||||
# Options
|
# Options
|
||||||
|
Loading…
Reference in New Issue
Block a user