summaryrefslogtreecommitdiff
path: root/community/virtualbox/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-11-11 20:59:51 +0100
committerErich Eckner <git@eckner.net>2020-11-11 20:59:51 +0100
commit882ebf15b67aaebba0f050fe1f5ed0b459d75166 (patch)
treeda87ebb013775e1c4b1723248c0750fd1b6443ff /community/virtualbox/PKGBUILD
parent23e9adfdf10a9c503140d6a9dabc45aad4fb1f10 (diff)
downloadpackages-882ebf15b67aaebba0f050fe1f5ed0b459d75166.tar.xz
community/virtualbox: only build the client components - at least, they build successfully
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
- '
-)"