summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2019-04-09 16:04:35 +0200
committerSören Tempel <soeren+git@soeren-tempel.net>2019-04-09 18:01:44 +0200
commitf92353f57bcc4e96f7f34f67bd8bc0721a4d82c1 (patch)
tree8c50c3c1c4223e21df7b237fb6ad95e33af3b806
parente2a012cba6566e28acfef29c39c2ffc1a7a05ae9 (diff)
downloadabuild-f92353f57bcc4e96f7f34f67bd8bc0721a4d82c1.tar.bz2
abuild-f92353f57bcc4e96f7f34f67bd8bc0721a4d82c1.tar.xz
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).
-rw-r--r--APKBUILD.52
-rw-r--r--abuild.in1
2 files changed, 3 insertions, 0 deletions
diff --git a/APKBUILD.5 b/APKBUILD.5
index 81a74ae..bfd7a61 100644
--- a/APKBUILD.5
+++ b/APKBUILD.5
@@ -404,6 +404,8 @@ variables.
.Bl -tag -width Ds
.It Cm depends_dev
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
Specifies the URL of the Git repository to use with
.Cm abuild checkout .
diff --git a/abuild.in b/abuild.in
index d19d12e..fabb5c7 100644
--- a/abuild.in
+++ b/abuild.in
@@ -1731,6 +1731,7 @@ dev() {
# predefined splitfunc libs
default_libs() {
+ depends="$depends_libs"
pkgdesc="$pkgdesc (libraries)"
local dir= file=
for dir in lib usr/lib; do