Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Maintainer: Det <nimetonmaili g-mail>
- # Maintainer: bermudi <archlinux.i5beg@dabg.uk>
- # Based on [extra]'s thunderbird
- pkgname=thunderbird-beta-bin
- _pkgname=thunderbird-beta
- pkgver=123.0b5
- _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' 'hunspell')
- optdepends=('hyphen: Hyphenation'
- 'libcanberra: Sound support')
- provides=("thunderbird=$pkgver")
- conflicts=('thunderbird-beta')
- install=$pkgname.install
- source=("https://ftp.mozilla.org/pub/thunderbird/releases/$pkgver/linux-x86_64/en-US/thunderbird-$pkgver.tar.bz2"
- 'org.mozilla.thunderbird-beta-bin.desktop'
- 'vendor.js')
- sha512sums=('f1f93e0628d80f17361605612978e30b451d49caf22fd6725ed817e8f8b5bb462c8f65b195ddd9c23984ff8321ffec42778008276625dd3449d958836c0da3b0'
- 'b42b4b86aa072dca7f9e401c1f0c593396cda45fe56326af997db4042549cf895f1f0682c0d007647cda5200f11c06cef13e006a5973eae2bfa31b86d4d32f79'
- '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 org.mozilla.thunderbird-beta-bin.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
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement