diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-05-18 12:45:17 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-05-18 12:45:17 +0000 |
commit | 313764822822b12f1834c8f04288c4384c7a8bb2 (patch) | |
tree | 0c75890f1636614402d6842dfb8f78b09fe63b84 /abuild.in | |
parent | db2be5e5bc4ce1071252c0745296cafcd457940f (diff) | |
download | abuild-313764822822b12f1834c8f04288c4384c7a8bb2.tar.gz abuild-313764822822b12f1834c8f04288c4384c7a8bb2.tar.bz2 abuild-313764822822b12f1834c8f04288c4384c7a8bb2.tar.xz abuild-313764822822b12f1834c8f04288c4384c7a8bb2.zip |
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-x | abuild.in | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 } |