Skip to content

Instantly share code, notes, and snippets.

@mrkmg
Last active September 29, 2017 13:07
Show Gist options
  • Save mrkmg/f2f3e8e8af4ea7239366c249c51f9e80 to your computer and use it in GitHub Desktop.
Save mrkmg/f2f3e8e8af4ea7239366c249c51f9e80 to your computer and use it in GitHub Desktop.
Albert AUR virtualbox patch
--- albert/no-virtualbox.patch 1969-12-31 19:00:00.000000000 -0500
+++ albert-patched/no-virtualbox.patch 2017-09-29 08:53:13.278139849 -0400
@@ -0,0 +1,10 @@
+--- CMakeLists.txt 2017-09-29 08:52:01.594975848 -0400
++++ CMakeLists.txt.patched 2017-09-29 08:52:32.801569554 -0400
+@@ -22,7 +22,6 @@
+ add_subdirectory(ssh)
+ add_subdirectory(system)
+ add_subdirectory(terminal)
+-add_subdirectory(virtualbox)
+ add_subdirectory(websearch)
+
+ # Non-release plugins
diff -ruN albert/PKGBUILD albert-patched/PKGBUILD
--- albert/PKGBUILD 2017-09-29 08:59:37.380484827 -0400
+++ albert-patched/PKGBUILD 2017-09-29 08:57:12.834203100 -0400
@@ -7,7 +7,7 @@
url="https://github.com/albertlauncher/albert"
license=('GPL')
depends=('qt5-base' 'libx11' 'qt5-x11extras' 'qt5-svg')
-makedepends=('cmake' 'gcc' 'qt5-base' 'virtualbox-sdk' 'muparser')
+makedepends=('cmake' 'gcc' 'qt5-base' 'muparser')
optdepends=('virtualbox: VirtualBox plugin'
'muparser: Calculator plugin'
'qt5-quickcontrols: QML frontend'
@@ -38,7 +38,7 @@
╰──────────────────────────────────────────────╯
EOD
-
+ pacman -Qi virtualbox || patch albert/plugins/CMakeLists.txt < ../no-virtualbox.patch
[[ -d "build" ]] || mkdir -p "build"
cd "build"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment