blob: b662b1c3c94f0229313a69f14c64b29d3e3f5f47 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Maintainer: Det <nimetonmaili g-mail>
# Based on [extra]'s thunderbird
pkgname=thunderbird-beta-bin
pkgver=53.0b1
_major=${pkgver/rc*}
_build=${pkgver/*rc}
pkgrel=1
pkgdesc="Standalone Mail/News reader - Bleeding edge binary version"
arch=('i686' 'x86_64')
url="https://www.mozilla.org/thunderbird"
license=('GPL' 'LGPL' 'MPL')
depends=('dbus-glib' 'gtk3' 'libxt' 'nss')
optdepends=('libcanberra: for sound support')
provides=("thunderbird=$pkgver")
conflicts=('thunderbird-beta')
install=$pkgname.install
source=('thunderbird-beta-bin.desktop'
'vendor.js')
source_i686=("https://ftp.mozilla.org/pub/thunderbird/releases/$pkgver/linux-i686/en-US/thunderbird-$pkgver.tar.bz2")
source_x86_64=("https://ftp.mozilla.org/pub/thunderbird/releases/$pkgver/linux-x86_64/en-US/thunderbird-$pkgver.tar.bz2")
sha512sums=('e5649ddee3ca9cfdcf56652e9c8e6160d52c69d1439f9135b0c0d436ce61a25f17758afc0dd6cac3434c26234c584828eb07fdf9604797f7dd3f617ec194b79a'
'aeb444784732267f1b1e87e6084a776f82a1912c4c2637d2cf1de1c135dd9d41d2ef66d2bd3f9cbd3a79fad32d17ea6e2968ba644d5f887cb66ba6c09a2098f5')
sha512sums_i686=('fa763c1fe54c79f67385d366df1fc3d458c154e82715028fcb63068821763c9fcd0391f28ab4242545e04bdf22082ddcc84b94d8e95d42615fbcd73bb7373ca1')
sha512sums_x86_64=('1cdf10adde1a017bfedd88bca9988c6f5067070340e45b29f3c3954aaa41c4d11922269b92c320778a79582179bdf81aeb225ae09a93ff754a137d7ca16fd65f')
# RC
if [[ $_build = ? ]]; then
source_i686=("https://ftp.mozilla.org/pub/thunderbird/candidates/$_major-candidates/build$_build/linux-i686/en-US/thunderbird-$_major.tar.bz2")
source_x86_64=("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/thunderbird-beta
# vendor.js
_vendorjs="$pkgdir/opt/thunderbird-beta/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
# 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/thunderbird-beta/chrome/icons/default/default$i.png \
"$pkgdir"/usr/share/icons/hicolor/${i}x${i}/apps/thunderbird-beta.png
done
# Desktop
install -m644 $pkgname.desktop "$pkgdir"/usr/share/applications/
# /usr/bin symlink
ln -s /opt/thunderbird-beta/thunderbird "$pkgdir"/usr/bin/thunderbird-beta
}
|