diff options
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" } |