diff options
author | 咸粽子 | 2020-05-01 06:59:52 +0800 |
---|---|---|
committer | 咸粽子 | 2020-05-01 06:59:52 +0800 |
commit | 2aca9cb6b8f32ec071a2cac1b34957fa6e38182e (patch) | |
tree | 519ced80a5a90390ef90ed2a9d0196ecae2866e9 | |
download | aur-2aca9cb6b8f32ec071a2cac1b34957fa6e38182e.tar.gz |
首次创建包
-rw-r--r-- | .SRCINFO | 29 | ||||
-rw-r--r-- | PKGBUILD | 79 | ||||
-rw-r--r-- | thunderbird-beta-bin-zh-cn.desktop | 176 | ||||
-rw-r--r-- | thunderbird-beta-bin-zh-cn.install | 18 | ||||
-rw-r--r-- | vendor.js | 9 |
5 files changed, 311 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3cf49ccd236f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,29 @@ +pkgbase = thunderbird-beta-bin-zh-cn + pkgdesc = Standalone Mail/News reader - Bleeding edge binary version 中文预编译版 + pkgver = 76.0b3 + pkgrel = 1 + url = https://www.mozilla.org/thunderbird + install = thunderbird-beta-bin-zh-cn.install + arch = x86_64 + license = GPL + license = LGPL + license = MPL + depends = dbus-glib + depends = gtk3 + depends = libxt + depends = nss + optdepends = hunspell: Spell checking + optdepends = hyphen: Hyphenation + optdepends = libcanberra: Sound support + provides = thunderbird=76.0b3 + conflicts = thunderbird-beta + conflicts = thunderbird-beta-bin + source = https://download-installer.cdn.mozilla.net/pub/thunderbird/releases/76.0b3/linux-x86_64/zh-CN/thunderbird-76.0b3.tar.bz2 + source = thunderbird-beta-bin-zh-cn.desktop + source = vendor.js + sha512sums = 26660c7f3bf0e3f5022f377f212db2333d59fa9c9a05fc726857a8a7b42b7caf861d94463e359d87f5db8e87d5869f09e1007e41093a62cd8c06befb62211506 + sha512sums = 5639d9808d543f151eebb5b79246dbac9c5a3f68a2e1fc28190da62867e02a07b96e8409e460ecb5398aab37ea4959d5eeb7d2fc592014779c3b6791a0b50b93 + sha512sums = aeb444784732267f1b1e87e6084a776f82a1912c4c2637d2cf1de1c135dd9d41d2ef66d2bd3f9cbd3a79fad32d17ea6e2968ba644d5f887cb66ba6c09a2098f5 + +pkgname = thunderbird-beta-bin-zh-cn + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..68d97118da48 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,79 @@ +# Maintainer: 咸粽子 <xianzongzi aliyun.com> +# Based on [AUR]'s thunderbird-beta-bin + +pkgname=thunderbird-beta-bin-zh-cn +_pkgname=thunderbird-beta +pkgver=76.0b3 +_major=${pkgver/rc*} +_build=${pkgver/*rc} +pkgrel=1 +pkgdesc="Standalone Mail/News reader - Bleeding edge binary version 中文预编译版" +arch=('x86_64') +url="https://www.mozilla.org/thunderbird" +license=('GPL' 'LGPL' 'MPL') +depends=('dbus-glib' 'gtk3' 'libxt' 'nss') +optdepends=('hunspell: Spell checking' + 'hyphen: Hyphenation' + 'libcanberra: Sound support') +provides=("thunderbird=$pkgver") +conflicts=('thunderbird-beta' + 'thunderbird-beta-bin') +install=$pkgname.install +source=("https://download-installer.cdn.mozilla.net/pub/thunderbird/releases/$pkgver/linux-x86_64/zh-CN/thunderbird-$pkgver.tar.bz2" + 'thunderbird-beta-bin-zh-cn.desktop' + 'vendor.js') +sha512sums=('26660c7f3bf0e3f5022f377f212db2333d59fa9c9a05fc726857a8a7b42b7caf861d94463e359d87f5db8e87d5869f09e1007e41093a62cd8c06befb62211506' + '5639d9808d543f151eebb5b79246dbac9c5a3f68a2e1fc28190da62867e02a07b96e8409e460ecb5398aab37ea4959d5eeb7d2fc592014779c3b6791a0b50b93' + 'aeb444784732267f1b1e87e6084a776f82a1912c4c2637d2cf1de1c135dd9d41d2ef66d2bd3f9cbd3a79fad32d17ea6e2968ba644d5f887cb66ba6c09a2098f5') +# RC +if [[ $_build = ? ]]; then + source[0]="thunderbird-$pkgver.tar.bz2::https://ftp.mozilla.org/pub/thunderbird/candidates/$_major-candidates/build$_build/linux-x86_64/en-US/thunderbird-$_major.tar.bz2" +fi + +package() { + # Create directories + msg2 "Creating directory structure..." + install -d "$pkgdir"/usr/bin + install -d "$pkgdir"/usr/share/applications + install -d "$pkgdir"/opt + + msg2 "Moving stuff in place..." + # Install + cp -r thunderbird/ "$pkgdir"/opt/$_pkgname + + # Launchers + ln -s /opt/$_pkgname/thunderbird "$pkgdir"/usr/bin/$_pkgname + # breaks application as of 68.0b1 + # ln -sf thunderbird "$pkgdir"/opt/$_pkgname/thunderbird-bin + + # vendor.js + _vendorjs="$pkgdir/opt/$_pkgname/defaults/preferences/vendor.js" + install -Dm644 /dev/stdin "$_vendorjs" <<END +// Use LANG environment variable to choose locale +pref("intl.locale.matchOS", true); + +// Disable default mailer checking. +pref("mail.shell.checkDefaultMail", false); + +// Don't disable our bundled extensions in the application directory +pref("extensions.autoDisableScopes", 11); +pref("extensions.shownSelectionUI", true); +END + + # Desktop + install -m644 $pkgname.desktop "$pkgdir"/usr/share/applications/ + + # Icons + for i in 16 22 24 32 48 256; do + install -d "$pkgdir"/usr/share/icons/hicolor/${i}x${i}/apps/ + ln -s /opt/$_pkgname/chrome/icons/default/default$i.png \ + "$pkgdir"/usr/share/icons/hicolor/${i}x${i}/apps/$_pkgname.png + done + + # Use system-provided dictionaries + ln -Ts /usr/share/hunspell "$pkgdir"/opt/$_pkgname/dictionaries + ln -Ts /usr/share/hyphen "$pkgdir"/opt/$_pkgname/hyphenation + + # Use system certificates + ln -sf /usr/lib/libnssckbi.so "$pkgdir"/opt/$_pkgname/libnssckbi.so +} diff --git a/thunderbird-beta-bin-zh-cn.desktop b/thunderbird-beta-bin-zh-cn.desktop new file mode 100644 index 000000000000..b74ea12b4b94 --- /dev/null +++ b/thunderbird-beta-bin-zh-cn.desktop @@ -0,0 +1,176 @@ +[Desktop Entry] +Name=Thunderbird (Bleeding edge) +Comment=Send and receive mail with Thunderbird +Comment[ast]=Lleer y escribir corréu electrónicu +Comment[ca]=Llegiu i escriviu correu +Comment[cs]=Čtení a psaní pošty +Comment[da]=Skriv/læs e-post/nyhedsgruppe med Mozilla Thunderbird +Comment[de]=E-Mails und Nachrichten mit Thunderbird lesen und schreiben +Comment[el]=Διαβάστε και γράψτε γράμματα με το Mozilla Thunderbird +Comment[es]=Lea y escriba correos y noticias con Thunderbird +Comment[fi]=Lue ja kirjoita sähköposteja +Comment[fr]=Lire et écrire des courriels +Comment[gl]=Lea e escriba correo electrónico +Comment[he]=קריאה/כתיבה של דוא״ל/חדשות באמצעות Mozilla Thunderbird +Comment[hr]=Čitajte/šaljite e-poštu s Thunderbird +Comment[hu]=Levelek írása és olvasása a Thunderbirddel +Comment[it]=Per leggere e scrivere email +Comment[ja]=メールの読み書き +Comment[ko]=Mozilla Thunderbird 메일/뉴스 읽기 및 쓰기 클라이언트 +Comment[nl]=E-mail/nieuws lezen en schrijven met Mozilla Thunderbird +Comment[pl]=Czytanie i wysyłanie e-maili +Comment[pt_BR]=Leia e escreva suas mensagens +Comment[ru]=Читайте и пишите письма +Comment[sk]=Čítajte a píšte poštu pomocou programu Thunderbird +Comment[sv]=Läs och skriv e-post +Comment[ug]=ئېلخەت ۋە خەۋەرلەرنى Mozilla Thunderbird دا كۆرۈش ۋە يېزىش +Comment[uk]=Читання та написання листів +Comment[vi]=Đọc và soạn thư điện tử +Comment[zh_CN]=阅读邮件或新闻 +Comment[zh_TW]=以 Mozilla Thunderbird 讀寫郵件或新聞 +GenericName=Mail Client (Bleeding edge) +GenericName[ast]=Client de correu +GenericName[ca]=Client de correu +GenericName[cs]=Poštovní klient +GenericName[da]=E-postklient +GenericName[de]=E-Mail-Anwendung +GenericName[el]=Λογισμικό αλληλογραφίας +GenericName[es]=Cliente de correo +GenericName[fi]=Sähköpostiohjelma +GenericName[fr]=Client de messagerie +GenericName[gl]=Cliente de correo electrónico +GenericName[he]=לקוח דוא״ל +GenericName[hr]=Klijent e-pošte +GenericName[hu]=Levelezőkliens +GenericName[it]=Client email +GenericName[ja]=電子メールクライアント +GenericName[ko]=메일 클라이언트 +GenericName[nl]=E-mailprogramma +GenericName[pl]=Klient poczty +GenericName[pt_BR]=Cliente de E-mail +GenericName[ru]=Почтовый клиент +GenericName[sk]=Poštový klient +GenericName[ug]=ئېلخەت دېتالى +GenericName[uk]=Поштова програма +GenericName[vi]=Phần mềm khách quản lý thư điện tử +GenericName[zh_CN]=邮件新闻客户端 +GenericName[zh_TW]=郵件用戶端 +Exec=/opt/thunderbird-beta/thunderbird %u +Terminal=false +Type=Application +Icon=thunderbird-beta +Categories=Network;Email; +MimeType=message/rfc822;x-scheme-handler/mailto;application/x-xpinstall; +StartupNotify=true +Actions=ComposeMessage;OpenAddressBook; +StartupWMClass=thunderbird + +[Desktop Action ComposeMessage] +Name=Write new message +Name[ar]=اكتب رسالة جديدة +Name[ast]=Redactar mensaxe nuevu +Name[be]=Напісаць новы ліст +Name[bg]=Съставяне на ново съобщение +Name[br]=Skrivañ ur gemennadenn nevez +Name[ca]=Escriu un missatge nou +Name[cs]=Napsat novou zprávu +Name[da]=Skriv en ny meddelelse +Name[de]=Neue Nachricht verfassen +Name[el]=Σύνταξη νέου μηνύματος +Name[es_AR]=Escribir un nuevo mensaje +Name[es_ES]=Redactar nuevo mensaje +Name[et]=Kirjuta uus kiri +Name[eu]=Idatzi mezu berria +Name[fi]=Kirjoita uusi viesti +Name[fr]=Rédiger un nouveau message +Name[fy_NL]=Skriuw in nij berjocht +Name[ga_IE]=Scríobh teachtaireacht nua +Name[gd]=Sgrìobh teachdaireachd ùr +Name[gl]=Escribir unha nova mensaxe +Name[he]=כתיבת הודעה חדשה +Name[hr]=Piši novu poruku +Name[hu]=Új üzenet írása +Name[hy_AM]=Գրել նոր նամակ +Name[is]=SKrifa nýjan póst +Name[it]=Scrivi nuovo messaggio +Name[ja]=新しいメッセージを作成する +Name[ko]=새 메시지 작성 +Name[lt]=Rašyti naują laišką +Name[nb_NO]=Skriv ny melding +Name[nl]=Nieuw bericht aanmaken +Name[nn_NO]=Skriv ny melding +Name[pl]=Nowa wiadomość +Name[pt_BR]=Nova mensagem +Name[pt_PT]=Escrever nova mensagem +Name[rm]=Scriver in nov messadi +Name[ro]=Scrie un mesaj nou +Name[ru]=Создать новое сообщение +Name[si]=නව ලිපියක් ලියන්න +Name[sk]=Nová e-mailová správa +Name[sl]=Sestavi novo sporočilo +Name[sq]=Shkruani mesazh të ri +Name[sr]=Писање нове поруке +Name[sv_SE]=Skriv ett nytt meddelande +Name[ta_LK]=புதிய செய்தியை எழுதுக +Name[tr]=Yeni ileti yaz +Name[uk]=Написати нового листа +Name[vi]=Viết thư mới +Name[zh_CN]=编写新消息 +Name[zh_TW]=寫一封新訊息 +Exec=/opt/thunderbird-beta/thunderbird -compose +StartupWMClass=thunderbird + +[Desktop Action OpenAddressBook] +Name=Open address book +Name[ar]=افتح دفتر العناوين +Name[ast]=Abrir llibreta de direiciones +Name[be]=Адкрыць адрасную кнігу +Name[bg]=Отваряне на адресник +Name[br]=Digeriñ ur c'harned chomlec'hioù +Name[ca]=Obre la llibreta d'adreces +Name[cs]=Otevřít Adresář +Name[da]=Åbn adressebog +Name[de]=Adressbuch öffnen +Name[el]=Άνοιγμα ευρετηρίου διευθύνσεων +Name[es_AR]=Abrir libreta de direcciones +Name[es_ES]=Abrir libreta de direcciones +Name[et]=Ava aadressiraamat +Name[eu]=Ireki helbide-liburua +Name[fi]=Avaa osoitekirja +Name[fr]=Ouvrir un carnet d'adresses +Name[fy_NL]=Iepenje adresboek +Name[ga_IE]=Oscail leabhar seoltaí +Name[gd]=Fosgail leabhar-sheòlaidhean +Name[gl]=Abrir a axenda de enderezos +Name[he]=פתיחת ספר כתובות +Name[hr]=Otvori adresar +Name[hu]=Címjegyzék megnyitása +Name[hy_AM]=Բացել Հասցեագիրքը +Name[is]=Opna nafnaskrá +Name[it]=Apri rubrica +Name[ja]=アドレス帳を開く +Name[ko]=주소록 열기 +Name[lt]=Atverti adresų knygą +Name[nb_NO]=Åpne adressebok +Name[nl]=Adresboek openen +Name[nn_NO]=Opne adressebok +Name[pl]=Książka adresowa +Name[pt_BR]=Catálogo de endereços +Name[pt_PT]=Abrir livro de endereços +Name[rm]=Avrir il cudeschet d'adressas +Name[ro]=Deschide agenda de contacte +Name[ru]=Открыть адресную книгу +Name[si]=ලිපින පොත විවෘත කරන්න +Name[sk]=Otvoriť adresár +Name[sl]=Odpri adressar +Name[sq]=Hapni libër adresash +Name[sr]=Отвори адресар +Name[sv_SE]=Öppna adressboken +Name[ta_LK]=முகவரி பத்தகத்தை திறக்க +Name[tr]=Adres defterini aç +Name[uk]=Відкрити адресну книгу +Name[vi]=Mở sổ địa chỉ +Name[zh_CN]=打开通讯录 +Name[zh_TW]=開啟通訊錄 +Exec=/opt/thunderbird-beta/thunderbird -addressbook +StartupWMClass=thunderbird diff --git a/thunderbird-beta-bin-zh-cn.install b/thunderbird-beta-bin-zh-cn.install new file mode 100644 index 000000000000..3210bd567082 --- /dev/null +++ b/thunderbird-beta-bin-zh-cn.install @@ -0,0 +1,18 @@ +# Colored makepkg-like functions +msg_blue() { + printf "${blue}==>${bold} $1${all_off}\n" +} + +note() { + printf "${blue}==>${yellow} NOTE$1:${bold} $2${all_off}\n" +} + +all_off="$(tput sgr0)" +bold="${all_off}$(tput bold)" +blue="${bold}$(tput setaf 4)" +yellow="${bold}$(tput setaf 3)" + +post_install() { + note 1 "This package installs side-by-side with [extra]'s thunderbird." + note 2 "The launcher is called: 'thunderbird-beta'." +} diff --git a/vendor.js b/vendor.js new file mode 100644 index 000000000000..170b505a8dcc --- /dev/null +++ b/vendor.js @@ -0,0 +1,9 @@ +// Use LANG environment variable to choose locale +pref("intl.locale.matchOS", true); + +// Disable default mailer checking. +pref("mail.shell.checkDefaultMail", false); + +// Don't disable our bundled extensions in the application directory +pref("extensions.autoDisableScopes", 11); +pref("extensions.shownSelectionUI", true); |