46 lines
1.8 KiB
Text
46 lines
1.8 KiB
Text
# Template build file for 'thunderbird'.
|
|
pkgname=thunderbird
|
|
version=31.4.0
|
|
revision=1
|
|
lib32disabled=yes
|
|
wrksrc="comm-esr${version/.*/}"
|
|
short_desc="Standalone Mail/News reader"
|
|
maintainer="Enno Boland <eb@s01.de>"
|
|
homepage="http://www.mozilla.org/thunderbird/"
|
|
license="MPL-1.1, GPL-2, LGPL-2.1"
|
|
distfiles="${MOZILLA_SITE}/${pkgname}/releases/${version}/source/${pkgname}-${version}.source.tar.bz2"
|
|
checksum=3e4b6cb5934b7a8e51a673044e0691eb7cd88a08415494673cd7eadb35cd90c3
|
|
|
|
hostmakedepends="unzip zip perl python yasm pkg-config autoconf"
|
|
makedepends="python-devel cairo-devel libjpeg-turbo-devel pixman-devel
|
|
nss-devel>=3.15.4 sqlite-devel libXrender-devel gtk+-devel libevent-devel
|
|
libvpx-devel hunspell-devel>=1.3.2 startup-notification-devel dbus-glib-devel
|
|
alsa-lib-devel wireless_tools-devel libXScrnSaver-devel libSM-devel libXt-devel
|
|
pulseaudio-devel"
|
|
depends="desktop-file-utils hicolor-icon-theme"
|
|
|
|
do_build() {
|
|
cp -f ${FILESDIR}/mozconfig .mozconfig
|
|
export LDFLAGS="-Wl,-R/usr/lib/thunderbird"
|
|
|
|
SHELL=/bin/bash make ${makejobs} -f client.mk build MOZ_MAKE_FLAGS="${makejobs}"
|
|
}
|
|
|
|
do_install() {
|
|
make -f client.mk DESTDIR=${DESTDIR} install
|
|
|
|
vinstall ${FILESDIR}/vendor.js 644 usr/lib/thunderbird/defaults/pref
|
|
|
|
vinstall ${FILESDIR}/thunderbird.desktop 644 usr/share/applications
|
|
for i in 16x16 22x22 24x24 32x32 48x48 256x256; do
|
|
vinstall other-licenses/branding/thunderbird/mailicon${i%x*}.png 644 \
|
|
usr/share/icons/hicolor/${i}/apps thunderbird.png
|
|
done
|
|
|
|
rm -rf ${DESTDIR}/usr/lib/thunderbird/{dictionaries,hyphenation}
|
|
ln -sf /usr/share/hunspell ${DESTDIR}/usr/lib/thunderbird/dictionaries
|
|
ln -sf /usr/share/hyphen ${DESTDIR}/usr/lib/thunderbird/hyphenation
|
|
|
|
# We don't want the development stuff
|
|
rm -r ${DESTDIR}/usr/{include,lib/thunderbird-devel,share/idl}
|
|
}
|