summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--obs-studio-browser.hook10
-rwxr-xr-xobs-studio-browser.sh20
2 files changed, 30 insertions, 0 deletions
diff --git a/obs-studio-browser.hook b/obs-studio-browser.hook
new file mode 100644
index 000000000000..0b9f684a917d
--- /dev/null
+++ b/obs-studio-browser.hook
@@ -0,0 +1,10 @@
+[Trigger]
+Type = Package
+Operation = Install
+Operation = Upgrade
+Target = obs-studio-browser
+
+[Action]
+Description = Warn Manjaro user about rebuild
+When = PostTransaction
+Exec = /usr/share/libalpm/scripts/obs-studio-browser.sh
diff --git a/obs-studio-browser.sh b/obs-studio-browser.sh
new file mode 100755
index 000000000000..9e400970cd78
--- /dev/null
+++ b/obs-studio-browser.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+msg() {
+ALL_OFF="\\e[1;0m"
+BOLD="\\e[1;1m"
+GREEN="${BOLD}\\e[1;32m"
+local mesg=$1; shift
+printf "${GREEN}==>${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}" "$@" >&2
+}
+
+echo
+msg "Warning:
+ -> obs-studio-browser does not support Manjaro
+ -> officially.
+ -> Some dependency version checks are disabled to
+ -> allow the package to be built on it.
+ -> So the package may require to be rebuilt if some
+ -> dependency packages are updated. If not the
+ -> package could not work correctly.
+"