summarylogtreecommitdiffstats
path: root/thunar.install
diff options
context:
space:
mode:
authorTed Alff2017-11-26 20:40:01 -0500
committerTed Alff2017-11-26 20:40:01 -0500
commitd091e7825a43d8093cc08c9fb63a5366c9ac4e56 (patch)
treee851dc5b1d9c82e1272be196124422b34f414345 /thunar.install
downloadaur-d091e7825a43d8093cc08c9fb63a5366c9ac4e56.tar.gz
Initial commit. GTK3 version 1.7.0
Diffstat (limited to 'thunar.install')
-rw-r--r--thunar.install21
1 files changed, 21 insertions, 0 deletions
diff --git a/thunar.install b/thunar.install
new file mode 100644
index 000000000000..c9099f6a9d36
--- /dev/null
+++ b/thunar.install
@@ -0,0 +1,21 @@
+post_install() {
+ printf "$(tput setaf 1)$(tput bold) ==> WARNING: $(tput sgr0)"
+ echo "List of packages which are linked against the GTK2 version of thunar"
+ while read pkg; do
+ mapfile -t files < <(pacman -Qlq $pkg | grep -v /$)
+ grep -Fq 'libthunarx-2.so' "${files[@]}" <&- 2>/dev/null && echo " >> $pkg"
+ done < <(pacman -Qq | grep -E '(^(xf|libxfce|garcon|tumbler|mousepad|orage|thunar)|xfce|xfwm)' )
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ printf "$(tput setaf 1)$(tput bold) ==> WARNING: $(tput sgr0)"
+ echo "Packages linked against uninstalled version of thunar:"
+ while read pkg; do
+ mapfile -t files < <(pacman -Qlq $pkg | grep -v /$)
+ grep -Fq 'libthunarx-3.so' "${files[@]}" <&- 2>/dev/null && echo " >> $pkg"
+ done < <(pacman -Qq | grep -E '(^(xf|libxfce|garcon|tumbler|mousepad|orage|thunar)|xfce|xfwm)' )
+}