summaryrefslogtreecommitdiffstats
path: root/abuild.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-05-18 12:45:17 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-05-18 12:45:17 +0000
commit313764822822b12f1834c8f04288c4384c7a8bb2 (patch)
tree0c75890f1636614402d6842dfb8f78b09fe63b84 /abuild.in
parentdb2be5e5bc4ce1071252c0745296cafcd457940f (diff)
downloadabuild-313764822822b12f1834c8f04288c4384c7a8bb2.tar.bz2
abuild-313764822822b12f1834c8f04288c4384c7a8bb2.tar.xz
abuild: move the .so symlinks to -dev packages
Those are needed when linking to the lib and not during runtime. Having those in the -dev package makes it easier to allow different versions of same libs to be installed side-by-side.
Diffstat (limited to 'abuild.in')
-rwxr-xr-xabuild.in9
1 files changed, 8 insertions, 1 deletions
diff --git a/abuild.in b/abuild.in
index 9af943b..0c94653 100755
--- a/abuild.in
+++ b/abuild.in
@@ -637,7 +637,7 @@ mod() {
# predefined splitfunc dev
default_dev() {
- local i
+ local i= j=
depends="$pkgname $depends_dev"
install="$install_dev"
triggers="$triggers_dev"
@@ -658,6 +658,13 @@ default_dev() {
rmdir "$pkgdir/${i%/*}" 2>/dev/null
fi
done
+ # move *.so links needed when linking the apps to -dev packages
+ for i in lib/*.so usr/lib/*.so; do
+ if [ -L "$i" ]; then
+ mkdir -p "$subpkgdir"/"${i%/*}"
+ mv "$i" "$subpkgdir/$i" || return 1
+ fi
+ done
return 0
}