blob: 35aab1d3641cac8652673b25afb4dd4d223c6b9c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#
BPurple='\033[1;35m' # Bold purple
Cyan='\033[0;36m' # Cyan
Reset='\033[0m' # Reset
call_to_action() {
echo -e "$Cyan"
echo " +-----------------------------------------------------------------------------------------+"
echo " | You can, |"
echo " | run this app by executing 'fluent-reader' on your terminal |"
echo " | star the project at : https://github.com/yang991178/fluent-reader |"
echo " | vote the AUR package at : https://aur.archlinux.org/packages/fluent-reader-bin |"
echo " | report issue about packaging : https://github.com/z00rat/AUR/issues |"
echo " | report issue about the app at : https://github.com/yang991178/fluent-reader/issues |"
echo " | backup configs and data from : ~/.config/fluent-reader/ |"
echo " | - zoorat. |"
echo " +-----------------------------------------------------------------------------------------+"
echo -e "$Reset"
}
after_remove() {
echo -e "$Cyan"
echo " +----------------------------------------------------------------------------------+"
echo " | remove configs and user data of this app by deleting ~/.config/fluent-reader/ |"
echo " | - zoorat. |"
echo " +----------------------------------------------------------------------------------+"
echo -e "$Reset"
}
# arg 1: the new package version
post_install() {
echo -e "$BPurple>> done installing 'fluent-reader-bin $1' $Reset"
call_to_action
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
echo -e "$BPurple>> done upgrading fluent-reader-bin from '$2' to '$1' $Reset"
call_to_action
}
# arg 1: the old package version
post_remove() {
echo -e "$BPurple>> done removing 'fluent-reader-bin $1' $Reset"
after_remove
}
|