summaryrefslogtreecommitdiff
path: root/abuild.in
diff options
context:
space:
mode:
Diffstat (limited to 'abuild.in')
-rwxr-xr-xabuild.in17
1 files changed, 17 insertions, 0 deletions
diff --git a/abuild.in b/abuild.in
index cd38494..02f16a6 100755
--- a/abuild.in
+++ b/abuild.in
@@ -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"
}