summaryrefslogtreecommitdiff
path: root/community/virtualbox/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/virtualbox/PKGBUILD')
-rw-r--r--community/virtualbox/PKGBUILD34
1 files changed, 19 insertions, 15 deletions
diff --git a/community/virtualbox/PKGBUILD b/community/virtualbox/PKGBUILD
index 0a53bda8..b876bc75 100644
--- a/community/virtualbox/PKGBUILD
+++ b/community/virtualbox/PKGBUILD
@@ -5,10 +5,29 @@
eval "$(
declare -f build | \
sed '
+ \@^\s*echo @ {
+ N
+ \@\n\s*kmk @ d
+ }
s|kmk|kmk -j 1|
+ ' | \
+ sed '
+ \@^\s*\./configure @ {
+ s@--disable-\S\+@@g
+ s@--enable-\S\+@@g
+ s@configure @\0--only-additions --disable-kmods @
+ }
';
)"
+pkgname=(
+ $(
+ printf '%s\n' "${pkgname[@]}" \
+ | grep '^virtualbox-guest-' \
+ | grep -v -- '-nox$'
+ )
+)
+
# let's not use too much memory, gcc tmpfiles can in this
# case also be put on a real /tmp (instead of tmpfs) to reduce
# preasure on the RAM
@@ -18,18 +37,3 @@ eval "$(
/source/ i \ sed -i 's/-pipe//g' Config.kmk
'
)"
-
-# disable building of vboximg-mount, breaks when linking against
-# libVBoxCom.a (XPCOM)
-eval "$(
- declare -f build | \
- sed '
- /vboximg-mount/d
- '
-)"
-eval "$(
- declare -f package_virtualbox | \
- sed '
- /vboximg-mount/d
- '
-)"