2014-03-03 06:53:11 +08:00
|
|
|
pkgname=thunderbird-kde
|
2015-10-01 07:48:24 +08:00
|
|
|
pkgver=38.3.0
|
2014-03-28 04:04:56 +08:00
|
|
|
pkgrel=1
|
2014-03-03 06:53:11 +08:00
|
|
|
provides=(thunderbird=${pkgver})
|
|
|
|
replaces=(thunderbird)
|
2013-04-28 16:58:07 +08:00
|
|
|
pkgdesc="Standalone Mail/News reader"
|
|
|
|
arch=('x86_64')
|
|
|
|
license=('MPL' 'GPL')
|
|
|
|
url="http://www.mozilla.org/thunderbird/"
|
2015-07-11 17:40:10 +08:00
|
|
|
depends=('gtk2' 'mozilla-common' 'libxt' 'startup-notification' 'mime-types'
|
|
|
|
'dbus-glib' 'alsa-lib' 'desktop-file-utils' 'hicolor-icon-theme' 'kdelibs'
|
|
|
|
'libvpx' 'icu' 'libevent' 'nss' 'hunspell' 'sqlite3' 'nspr' 'libnotify')
|
|
|
|
makedepends=('unzip' 'zip' 'python2' 'wireless_tools' 'yasm' 'mesa' 'libpulse'
|
|
|
|
'pkg-config' 'autoconf2.13' 'gst-plugins-base' 'xorg-server-xvfb')
|
2013-05-07 05:21:43 +08:00
|
|
|
optdepends=('thunderbird-i18n: for multilanguage support'
|
|
|
|
'libcanberra: for sound support')
|
2013-04-28 16:58:07 +08:00
|
|
|
install=thunderbird.install
|
2014-03-28 04:04:56 +08:00
|
|
|
# For patch look here: https://build.opensuse.org/package/show?project=openSUSE:Factory&package=MozillaThunderbird
|
2015-07-11 17:40:10 +08:00
|
|
|
source=(https://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$pkgver/source/thunderbird-$pkgver.source.tar.bz2
|
2013-04-28 16:58:07 +08:00
|
|
|
mozconfig
|
|
|
|
thunderbird.desktop
|
|
|
|
thunderbird-install-dir.patch
|
2014-03-03 06:53:11 +08:00
|
|
|
mozilla-kde.patch
|
2015-07-11 17:40:10 +08:00
|
|
|
mozilla-language.patch
|
2014-03-03 06:53:11 +08:00
|
|
|
mozilla-nongnome-proxies.patch
|
|
|
|
vendor.js
|
|
|
|
kde.js)
|
2015-07-11 17:40:10 +08:00
|
|
|
options=('!emptydirs' '!makeflags')
|
2015-10-01 07:48:24 +08:00
|
|
|
md5sums=('81dd8b5679787fd5fd91b76bc7923951'
|
2015-07-11 17:40:10 +08:00
|
|
|
'a99c6bf3dcb1d419bed0285187fe90f9'
|
|
|
|
'c883f4e5cafcd3cde8cf5cb417836737'
|
|
|
|
'3423528b295675ea216282b3f4f919a6'
|
2015-10-01 07:48:24 +08:00
|
|
|
'e254c185fb9f637512321c8d35b1acb2'
|
2015-07-11 17:40:10 +08:00
|
|
|
'c3cfc76e2ba30a7244510f244b6b5748'
|
2014-08-03 03:18:20 +08:00
|
|
|
'5b786bc0f2e998d201f53fd307bc573f'
|
2014-03-03 06:53:11 +08:00
|
|
|
'5a53179d14ae9631b7afe5e4d0fc0b25'
|
|
|
|
'75df0f88cc7a7fa7d522459e4ff82cc5')
|
2013-04-28 16:58:07 +08:00
|
|
|
|
2013-12-21 17:08:26 +08:00
|
|
|
prepare(){
|
2015-07-11 17:40:10 +08:00
|
|
|
cd comm-esr${pkgver%%.*}
|
|
|
|
patch -Np1 -i ../thunderbird-install-dir.patch
|
|
|
|
|
|
|
|
msg "Patching for KDE"
|
|
|
|
cd mozilla
|
|
|
|
patch -Np1 -i "$srcdir/mozilla-language.patch"
|
2014-03-03 06:53:11 +08:00
|
|
|
patch -Np1 -i "$srcdir/mozilla-nongnome-proxies.patch"
|
|
|
|
patch -Np1 -i "$srcdir/mozilla-kde.patch"
|
2015-07-11 17:40:10 +08:00
|
|
|
cd ..
|
2014-03-03 06:53:11 +08:00
|
|
|
|
2013-04-28 16:58:07 +08:00
|
|
|
cp "$srcdir/mozconfig" .mozconfig
|
|
|
|
|
|
|
|
# configure script misdetects the preprocessor without an optimization level
|
|
|
|
# https://bugs.archlinux.org/task/34644
|
2013-09-20 05:44:24 +08:00
|
|
|
sed -i '/ac_cpp=/s/$CPPFLAGS/& -O2/' mozilla/configure
|
2013-12-21 17:08:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2015-07-11 17:40:10 +08:00
|
|
|
cd comm-esr${pkgver%%.*}
|
|
|
|
|
2013-04-28 16:58:07 +08:00
|
|
|
export PYTHON="/usr/bin/python2"
|
2015-07-11 17:40:10 +08:00
|
|
|
export SHELL="/bin/bash"
|
2013-12-21 17:08:26 +08:00
|
|
|
|
2015-07-11 17:40:10 +08:00
|
|
|
xvfb-run -a -s "-extension GLX -screen 0 1280x1024x24" \
|
|
|
|
make -f client.mk build MOZ_PGO=1
|
2013-04-28 16:58:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2015-07-11 17:40:10 +08:00
|
|
|
cd comm-esr${pkgver%%.*}
|
2013-12-21 17:08:26 +08:00
|
|
|
make -f client.mk DESTDIR="$pkgdir" install
|
2013-04-28 16:58:07 +08:00
|
|
|
|
2013-11-11 02:40:09 +08:00
|
|
|
install -Dm644 "$srcdir"/vendor.js "$pkgdir/usr/lib/thunderbird/defaults/preferences/vendor.js"
|
2014-03-03 06:53:11 +08:00
|
|
|
install -Dm644 "$srcdir"/kde.js "$pkgdir/usr/lib/thunderbird/defaults/preferences/kde.js"
|
2013-04-28 16:58:07 +08:00
|
|
|
|
2015-07-11 17:40:10 +08:00
|
|
|
for i in 16 22 24 32 48 256; do
|
|
|
|
install -Dm644 other-licenses/branding/thunderbird/mailicon$i.png \
|
|
|
|
"$pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/thunderbird.png"
|
2013-04-28 16:58:07 +08:00
|
|
|
done
|
|
|
|
|
|
|
|
install -Dm644 "$srcdir/thunderbird.desktop" \
|
2013-11-11 02:40:09 +08:00
|
|
|
"$pkgdir/usr/share/applications/thunderbird.desktop"
|
2013-04-29 06:28:45 +08:00
|
|
|
|
2015-07-11 17:40:10 +08:00
|
|
|
# Use system-provided dictionaries
|
2013-11-11 02:40:09 +08:00
|
|
|
rm -rf "$pkgdir"/usr/lib/thunderbird/{dictionaries,hyphenation}
|
|
|
|
ln -sf /usr/share/hunspell "$pkgdir/usr/lib/thunderbird/dictionaries"
|
|
|
|
ln -sf /usr/share/hyphen "$pkgdir/usr/lib/thunderbird/hyphenation"
|
2013-04-29 06:28:45 +08:00
|
|
|
|
2015-07-11 17:40:10 +08:00
|
|
|
# Remove development stuff
|
2014-08-03 03:18:20 +08:00
|
|
|
rm -r "$pkgdir"/usr/{include,lib/thunderbird-devel-*,share/idl}
|
2013-04-28 16:58:07 +08:00
|
|
|
}
|