blob: 0afe9050d30b600e33d9891ea2576cb80e203836 (
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
|
# Maintainer: Det <nimetonmaili g-mail>
# Based on [extra]'s thunderbird
pkgname=thunderbird-beta-bin
_pkgname=thunderbird-beta
pkgver=52.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=("$pkgname.desktop"
"$pkgname-safe.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=('fc83c23f67cc5d399bc655d2486936db3ab500bafe399a905a17a0b0f63ad9befb782fc9c07d467a65a80a00e3ce984700ec3cf60e4cb3e1b29b20954c6fa775'
'3cf4194575041bbe344d6cd17e473eb78caf7e2e1aa8b1309151f7e4677c33571014ba6d7aba267398c3ba69c825c64363272b82b15f7dbb8ae5e3e825f439b7'
'aeb444784732267f1b1e87e6084a776f82a1912c4c2637d2cf1de1c135dd9d41d2ef66d2bd3f9cbd3a79fad32d17ea6e2968ba644d5f887cb66ba6c09a2098f5')
sha512sums_i686=('92df799cddbc0f9a00a7d4f239dd214265275112501377fe620b351af3996690933e400d837b6c9ecb769df83ff435e86fc3e854d7db0d00b7a55a92e8433517')
sha512sums_x86_64=('578d6718dd0e7efe1cc1cc9a06b531161749c611853174047a1ccb7e9cb77551b527b5434dfa81046017e76e05f1dcc86f6725d2e8fb50a955609411bc308d90')
# 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/$_pkgname
install -m644 vendor.js "$pkgdir"/opt/$_pkgname/defaults/pref/
# /usr/bin symlink
ln -s /opt/$_pkgname/thunderbird "$pkgdir"/usr/bin/$_pkgname
# Desktops
install -m644 *.desktop "$pkgdir"/usr/share/applications/
# Icons
for i in 16x16 22x22 24x24 32x32 48x48 256x256; do
install -d "$pkgdir"/usr/share/icons/hicolor/$i/apps/
ln -s /opt/$_pkgname/chrome/icons/default/default${i/x*}.png \
"$pkgdir"/usr/share/icons/hicolor/$i/apps/$_pkgname.png
done
}
|