abuild: add depends_libs variable to default_libs()

Other subpackage such as -dev, -doc and even -openrc allow adjusting
depends of the subpackage through such a variable. This is, for
instance, useful to remove a dependency of the origin package from the
-libs subpackage.

While at it document it in APKBUILD(5).
This commit is contained in:
Sören Tempel 2019-04-09 16:04:35 +02:00
parent e2a012cba6
commit f92353f57b
2 changed files with 3 additions and 0 deletions

View File

@ -404,6 +404,8 @@ variables.
.Bl -tag -width Ds .Bl -tag -width Ds
.It Cm depends_dev .It Cm depends_dev
Specifies the run-time dependencies of the -dev subpackage. Specifies the run-time dependencies of the -dev subpackage.
.It Cm depends_libs
Specifies the run-time dependencies of the -libs subpackage.
.It Cm giturl .It Cm giturl
Specifies the URL of the Git repository to use with Specifies the URL of the Git repository to use with
.Cm abuild checkout . .Cm abuild checkout .

View File

@ -1731,6 +1731,7 @@ dev() {
# predefined splitfunc libs # predefined splitfunc libs
default_libs() { default_libs() {
depends="$depends_libs"
pkgdesc="$pkgdesc (libraries)" pkgdesc="$pkgdesc (libraries)"
local dir= file= local dir= file=
for dir in lib usr/lib; do for dir in lib usr/lib; do