diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-10 17:36:00 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-10 17:48:41 +0000 |
commit | d12f8b2583635047a2d534ea03047936f46457d6 (patch) | |
tree | d4d7938521db07dd5291d8cd3e203040039a1995 /abuild.in | |
parent | a9a17c9a10a5d95e038ed744cd479c97120f2324 (diff) | |
download | abuild-d12f8b2583635047a2d534ea03047936f46457d6.tar.gz abuild-d12f8b2583635047a2d534ea03047936f46457d6.tar.bz2 abuild-d12f8b2583635047a2d534ea03047936f46457d6.tar.xz abuild-d12f8b2583635047a2d534ea03047936f46457d6.zip |
abuild: add support for predefined libs splitfunc
Diffstat (limited to 'abuild.in')
-rwxr-xr-x | abuild.in | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -1204,6 +1204,23 @@ dev() { default_dev } +# predefined splitfunc libs +default_libs() { + pkgdesc="$pkgdesc (libraries)" + local dir= file= + for dir in lib usr/lib; do + for file in "$pkgdir"/$dir/lib*.so.[0-9]*; do + [ -f "$file" ] || continue + mkdir -p "$subpkgdir"/$dir + mv "$file" "$subpkgdir"/$dir/ + done + done +} + +libs() { + default_libs +} + is_function() { type "$1" 2>&1 | head -n 1 | egrep -q "is a (shell )?function" } |