/ programs / x86_64 / thunderbird-beta
thunderbird-beta
 1  #!/bin/sh
 2  
 3  APP=thunderbird-beta
 4  
 5  # CREATE THE DIRECTORY
 6  mkdir -p /opt/"$APP"
 7  cd /opt/"$APP"
 8  
 9  # ADD THE REMOVER
10  echo '#!/bin/sh' >> /opt/"$APP"/remove
11  echo "rm -R -f  /opt/$APP /usr/local/share/applications/$APP-AM.desktop /usr/local/bin/$APP" >> /opt/"$APP"/remove
12  chmod a+x /opt/"$APP"/remove
13  
14  # DOWNLOAD THE ARCHIVE
15  mkdir -p tmp
16  cd ./tmp
17  
18  LANGUAGE=$(curl -Ls https://raw.githubusercontent.com/linuxmint/mdm/master/config/locale.alias | grep -i "$LANG" | grep -o '^\S*')
19  CODE=$(curl -Ls https://releases.mozilla.org/pub/thunderbird/releases/latest/README.txt | cut -d ':' -f2 | grep -i $LANGUAGE | cut -d '=' -f2)
20  wget "https://download.mozilla.org/?product=$APP-latest&os=linux64&lang=$CODE" --trust-server-names
21  
22  [ -e ./*tar.* ] && tar fx ./*tar.* && rm -f ./*tar.*
23  cd ..
24  mv ./tmp/thunderbird/* ./
25  rm -R ./tmp
26  
27  # LINK TO PATH
28  ln -s "/opt/$APP/thunderbird" "/usr/local/bin/$APP"
29  
30  # LAUNCHER
31  echo "[Desktop Entry]
32  Name=Thunderbird Beta
33  Comment=Send and receive mail with Thunderbird
34  Comment[ast]=Lleer y escribir corréu electrónicu
35  Comment[ca]=Llegiu i escriviu correu
36  Comment[cs]=Čtení a psaní pošty
37  Comment[da]=Skriv/læs e-post/nyhedsgruppe med Mozilla Thunderbird
38  Comment[de]=E-Mails und Nachrichten mit Thunderbird lesen und schreiben
39  Comment[el]=Διαβάστε και γράψτε γράμματα με το Mozilla Thunderbird
40  Comment[es]=Lea y escriba correos y noticias con Thunderbird
41  Comment[fi]=Lue ja kirjoita sähköposteja
42  Comment[fr]=Lire et écrire des courriels
43  Comment[gl]=Lea e escriba correo electrónico
44  Comment[he]=קריאה/כתיבה של דוא״ל/חדשות באמצעות Mozilla Thunderbird
45  Comment[hr]=Čitajte/šaljite e-poštu s Thunderbird
46  Comment[hu]=Levelek írása és olvasása a Thunderbirddel
47  Comment[it]=Per leggere e scrivere email
48  Comment[ja]=メールの読み書き
49  Comment[ko]=Mozilla Thunderbird 메일/뉴스 읽기 및 쓰기 클라이언트
50  Comment[nl]=E-mail/nieuws lezen en schrijven met Mozilla Thunderbird
51  Comment[pl]=Czytanie i wysyłanie e-maili
52  Comment[pt_BR]=Leia e escreva suas mensagens
53  Comment[ru]=Читайте и пишите письма
54  Comment[sk]=Čítajte a píšte poštu pomocou programu Thunderbird
55  Comment[sv]=Läs och skriv e-post
56  Comment[ug]=ئېلخەت ۋە خەۋەرلەرنى Mozilla Thunderbird دا كۆرۈش ۋە يېزىش
57  Comment[uk]=Читання та написання листів
58  Comment[vi]=Đọc và soạn thư điện tử
59  Comment[zh_CN]=阅读邮件或新闻
60  Comment[zh_TW]=以 Mozilla Thunderbird 讀寫郵件或新聞
61  GenericName=Mail Client (Bleeding edge)
62  GenericName[ast]=Client de correu
63  GenericName[ca]=Client de correu
64  GenericName[cs]=Poštovní klient
65  GenericName[da]=E-postklient
66  GenericName[de]=E-Mail-Anwendung
67  GenericName[el]=Λογισμικό αλληλογραφίας
68  GenericName[es]=Cliente de correo
69  GenericName[fi]=Sähköpostiohjelma
70  GenericName[fr]=Client de messagerie
71  GenericName[gl]=Cliente de correo electrónico
72  GenericName[he]=לקוח דוא״ל
73  GenericName[hr]=Klijent e-pošte
74  GenericName[hu]=Levelezőkliens
75  GenericName[it]=Client email
76  GenericName[ja]=電子メールクライアント
77  GenericName[ko]=메일 클라이언트
78  GenericName[nl]=E-mailprogramma
79  GenericName[pl]=Klient poczty
80  GenericName[pt_BR]=Cliente de E-mail
81  GenericName[ru]=Почтовый клиент
82  GenericName[sk]=Poštový klient
83  GenericName[ug]=ئېلخەت دېتالى
84  GenericName[uk]=Поштова програма
85  GenericName[vi]=Phần mềm khách quản lý thư điện tử
86  GenericName[zh_CN]=邮件新闻客户端
87  GenericName[zh_TW]=郵件用戶端
88  Exec=$APP %u
89  Terminal=false
90  Type=Application
91  Icon=/opt/$APP/chrome/icons/default/default128.png
92  Categories=Network;Email;
93  MimeType=message/rfc822;x-scheme-handler/mailto;application/x-xpinstall;
94  StartupNotify=true
95  Actions=ComposeMessage;OpenAddressBook;" > /usr/local/share/applications/"$APP"-AM.desktop
96  
97