blob: c9099f6a9d364b530e27a9619269010a790f0ddd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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)' )
}
|