summaryrefslogtreecommitdiff
path: root/abuild.in
diff options
context:
space:
mode:
Diffstat (limited to 'abuild.in')
-rw-r--r--abuild.in17
1 files changed, 6 insertions, 11 deletions
diff --git a/abuild.in b/abuild.in
index 43adc7d..8483cf8 100644
--- a/abuild.in
+++ b/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"