diff options
Diffstat (limited to 'adapted/thunderbird-bin/PKGBUILD')
-rw-r--r-- | adapted/thunderbird-bin/PKGBUILD | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/adapted/thunderbird-bin/PKGBUILD b/adapted/thunderbird-bin/PKGBUILD new file mode 100644 index 0000000..9b1bb18 --- /dev/null +++ b/adapted/thunderbird-bin/PKGBUILD @@ -0,0 +1,94 @@ +# Maintainer: Gennadiy Mykhailiuta <gmykhailiuta@gmail.com> +# Maintainer: Luna Jernberg <droidbittin@gmail.com> +# Contributor: Felix Golatofski <contact@xdfr.de> + +pkgname=thunderbird-bin +_pkgname=thunderbird +pkgver=102.7.0 +_major=${pkgver/rc*} +_build=${pkgver/*rc} +pkgrel=1 +pkgdesc="Standalone Mail/News reader - binary version" +arch=('x86_64' 'pentium4' 'i686') +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') +install=$pkgname.install +source=( + 'thunderbird-bin.desktop' + 'vendor.js' +) +source_x86_64=( + thunderbird-$pkgver-x86_64.tar.bz2::https://archive.mozilla.org/pub/thunderbird/releases/$pkgver/linux-x86_64/en-US/thunderbird-$pkgver.tar.bz2{,.asc} +) +source_pentium4=( + thunderbird-$pkgver-i686.tar.bz2::https://archive.mozilla.org/pub/thunderbird/releases/$pkgver/linux-i686/en-US/thunderbird-$pkgver.tar.bz2{,.asc} +) +source_i686=( + thunderbird-$pkgver-i686.tar.bz2::https://archive.mozilla.org/pub/thunderbird/releases/$pkgver/linux-i686/en-US/thunderbird-$pkgver.tar.bz2{,.asc} +) + +sha512sums=('6813e1dfd43c67ad7517714988ac27e7fdfe4857c8e6612c165a8aa89fa013c5ab4f270c13945010422d3bda82a7b7cd5496eaa5cb5524f6b2fa1732e59fd737' + 'aeb444784732267f1b1e87e6084a776f82a1912c4c2637d2cf1de1c135dd9d41d2ef66d2bd3f9cbd3a79fad32d17ea6e2968ba644d5f887cb66ba6c09a2098f5') +sha512sums_x86_64=('ffab495a3bb54e82d8070953505cbd3511f4c5c1232cf8f7acf87ac39f70189a89d4f5df48ecfb0700945fe5ff3679986c428110353febdeccb3a48a4991d1f4' + 'SKIP') +sha512sums_pentium4=('da95d5461fd31dd4b5b1343d8834c7c186f260acc9c8ff475a24170af35e281a20542318c1e35de8bdeb5dde3fa9a85f51880390dc8c4ac14d69c53b84ea147c' + 'SKIP') +sha512sums_i686=('da95d5461fd31dd4b5b1343d8834c7c186f260acc9c8ff475a24170af35e281a20542318c1e35de8bdeb5dde3fa9a85f51880390dc8c4ac14d69c53b84ea147c' + 'SKIP') + +validpgpkeys=(14F26682D0916CDD81E37B6D61B7B526D98F0353) # Mozilla Software Releases <release@mozilla.com> + +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/$_pkgname.desktop + + # 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 + # rm -r "$pkgdir"/opt/$_pkgname/dictionaries # Not in 68.0 + 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 +} |