mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-01-13 10:33:35 +00:00
abuild: simplify depends_static
Should not be any significant functional difference.
This commit is contained in:
parent
5486d877c5
commit
9be3a6c6a0
17
abuild.in
17
abuild.in
@ -1771,17 +1771,12 @@ default_static() {
|
||||
|
||||
# search for -dev package matching our prefix
|
||||
if [ -z "$depends_static" ]; then
|
||||
# remove common suffixes to get our prefix
|
||||
for devpkg in \
|
||||
"${subpkgname%-static}" \
|
||||
"${subpkgname%-libs-static}" \
|
||||
;
|
||||
do
|
||||
devpkg="$devpkg-dev"
|
||||
if subpackages_has "$devpkg"; then
|
||||
depends_static="$devpkg"
|
||||
fi
|
||||
done
|
||||
devpkg="${subpkgname%-libs-static}"
|
||||
devpkg="${devpkg%-static}"
|
||||
devpkg="$devpkg-dev"
|
||||
if subpackages_has "$devpkg"; then
|
||||
depends_static="$devpkg"
|
||||
fi
|
||||
fi
|
||||
|
||||
depends="$depends_static"
|
||||
|
Loading…
Reference in New Issue
Block a user