makepkg: allow url to be overridden in split packages
This is already being used (despite not working...) in packages in the Arch Linux repos. Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
19c2347507
commit
3a24e44206
3 changed files with 5 additions and 4 deletions
|
@ -324,9 +324,9 @@ Each split package uses a corresponding packaging function with name
|
||||||
All options and directives for the split packages default to the global values
|
All options and directives for the split packages default to the global values
|
||||||
given in the PKGBUILD. Nevertheless, the following ones can be overridden within
|
given in the PKGBUILD. Nevertheless, the following ones can be overridden within
|
||||||
each split package's packaging function:
|
each split package's packaging function:
|
||||||
`pkgver`, `pkgrel`, `epoch`, `pkgdesc`, `arch`, `license`, `groups`, `depends`,
|
`pkgver`, `pkgrel`, `epoch`, `pkgdesc`, `arch`, `url`, `license`, `groups`,
|
||||||
`optdepends`, `provides`, `conflicts`, `replaces`, `backup`, `options`,
|
`depends`, `optdepends`, `provides`, `conflicts`, `replaces`, `backup`,
|
||||||
`install` and `changelog`.
|
`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,6 +46,7 @@ package_pkg1() {
|
||||||
epoch=
|
epoch=
|
||||||
pkgdesc=""
|
pkgdesc=""
|
||||||
arch=()
|
arch=()
|
||||||
|
url=""
|
||||||
license=()
|
license=()
|
||||||
groups=()
|
groups=()
|
||||||
depends=()
|
depends=()
|
||||||
|
|
|
@ -46,7 +46,7 @@ declare -r startdir="$PWD"
|
||||||
|
|
||||||
packaging_options=('strip' 'docs' 'libtool' 'emptydirs' 'zipman' 'purge' 'upx')
|
packaging_options=('strip' 'docs' 'libtool' 'emptydirs' 'zipman' 'purge' 'upx')
|
||||||
other_options=('ccache' 'distcc' 'buildflags' 'makeflags')
|
other_options=('ccache' 'distcc' 'buildflags' 'makeflags')
|
||||||
splitpkg_overrides=('pkgver' 'pkgrel' 'epoch' 'pkgdesc' 'arch' 'license' \
|
splitpkg_overrides=('pkgver' 'pkgrel' 'epoch' 'pkgdesc' 'arch' 'url' 'license' \
|
||||||
'groups' 'depends' 'optdepends' 'provides' 'conflicts' \
|
'groups' 'depends' 'optdepends' 'provides' 'conflicts' \
|
||||||
'replaces' 'backup' 'options' 'install' 'changelog')
|
'replaces' 'backup' 'options' 'install' 'changelog')
|
||||||
readonly -a packaging_options other_options splitpkg_overrides
|
readonly -a packaging_options other_options splitpkg_overrides
|
||||||
|
|
Loading…
Add table
Reference in a new issue