Skip to content
Snippets Groups Projects
Commit d12f8b25 authored by Natanael Copa's avatar Natanael Copa
Browse files

abuild: add support for predefined libs splitfunc

parent a9a17c9a
No related merge requests found
...@@ -1204,6 +1204,23 @@ dev() { ...@@ -1204,6 +1204,23 @@ dev() {
default_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() { is_function() {
type "$1" 2>&1 | head -n 1 | egrep -q "is a (shell )?function" type "$1" 2>&1 | head -n 1 | egrep -q "is a (shell )?function"
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment