summaryrefslogtreecommitdiff
path: root/abuild.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-10-10 17:36:00 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-10-10 17:48:41 +0000
commitd12f8b2583635047a2d534ea03047936f46457d6 (patch)
treed4d7938521db07dd5291d8cd3e203040039a1995 /abuild.in
parenta9a17c9a10a5d95e038ed744cd479c97120f2324 (diff)
downloadabuild-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-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"
}