Index: Makefile
===================================================================
--- Makefile (nonexistent)
+++ Makefile (revision 173)
@@ -0,0 +1,461 @@
+
+COMPONENT_TARGETS = $(HARDWARE_INTEL_PC32)
+COMPONENT_TARGETS += $(HARDWARE_INTEL_PC64)
+COMPONENT_TARGETS += $(HARDWARE_EBOX_3350DX2)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB2X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PP2E)
+COMPONENT_TARGETS += $(HARDWARE_NANOPI_NEO)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PP)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PL2)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PI5)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PI5B)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PI5P)
+COMPONENT_TARGETS += $(HARDWARE_ROCK_5B)
+COMPONENT_TARGETS += $(HARDWARE_WECHIP_TX6)
+COMPONENT_TARGETS += $(HARDWARE_REPKA_PI3)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_POIN2)
+COMPONENT_TARGETS += $(HARDWARE_RK3328_CC)
+COMPONENT_TARGETS += $(HARDWARE_KHADAS_EDGE)
+COMPONENT_TARGETS += $(HARDWARE_LEEZ_P710)
+COMPONENT_TARGETS += $(HARDWARE_M201)
+COMPONENT_TARGETS += $(HARDWARE_MXV)
+COMPONENT_TARGETS += $(HARDWARE_P201)
+COMPONENT_TARGETS += $(HARDWARE_NEXBOX_A95X)
+COMPONENT_TARGETS += $(HARDWARE_ODROID_C2)
+COMPONENT_TARGETS += $(HARDWARE_P212)
+COMPONENT_TARGETS += $(HARDWARE_KHADAS_VIM)
+COMPONENT_TARGETS += $(HARDWARE_Q201)
+COMPONENT_TARGETS += $(HARDWARE_ENYBOX_X2)
+COMPONENT_TARGETS += $(HARDWARE_KHADAS_VIM2)
+COMPONENT_TARGETS += $(HARDWARE_NIT6Q)
+COMPONENT_TARGETS += $(HARDWARE_OKMX6DL_C)
+COMPONENT_TARGETS += $(HARDWARE_OKMX6Q_C)
+COMPONENT_TARGETS += $(HARDWARE_BONE_BLACK)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_DRA7XXEVM)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+COMPONENT_TARGETS += $(HARDWARE_BAIKAL_T1)
+COMPONENT_TARGETS += $(HARDWARE_BAIKAL_M1)
+COMPONENT_TARGETS += $(HARDWARE_S824L)
+COMPONENT_TARGETS += $(HARDWARE_VESNIN)
+COMPONENT_TARGETS += $(HARDWARE_S824L_LSB)
+COMPONENT_TARGETS += $(HARDWARE_VESNIN_LSB)
+COMPONENT_TARGETS += $(HARDWARE_TL2WK2)
+COMPONENT_TARGETS += $(HARDWARE_TL2SV2)
+COMPONENT_TARGETS += $(HARDWARE_TL2WK2_LSB)
+COMPONENT_TARGETS += $(HARDWARE_TL2SV2_LSB)
+COMPONENT_TARGETS += $(HARDWARE_SIFIVE_U740)
+
+
+NEED_ABS_PATH = true
+COMPONENT_IS_3PP = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES = sources/packages/x/mozilla/thunderbird
+
+REQUIRES = X11/libs/gtk+3/3.24.37
+REQUIRES += X11/libs/cairo/1.17.8
+REQUIRES += X11/media/alsa-plugins/1.2.7.1
+REQUIRES += app/fontconfig/2.13.95
+REQUIRES += libs/icu4c/73.1
+REQUIRES += libs/dbus-glib/0.112
+REQUIRES += media/libvpx/1.12.0
+REQUIRES += net/nss/3.93
+
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version = 115.3.1
+tar_xz_archive = $(SRC_PACKAGE_PATH)/packages/x/mozilla/thunderbird/thunderbird-$(version).source.tar.xz
+SRC_ARCHIVE = $(tar_xz_archive)
+SRC_DIR = $(TARGET_BUILD_DIR)/thunderbird-$(version)
+src_dir_name = thunderbird-$(version)
+src_done = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RISCV64_GLIBC)),)
+OPT_PATCHES = PATCHES.riscv64gc
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_I586_GLIBC) $(TOOLCHAIN_I686_GLIBC)),)
+OPT_PATCHES = PATCHES.x86
+endif
+
+build_dir = $(TARGET_BUILD_DIR)/build
+build_target = $(TARGET_BUILD_DIR)/.build_done
+install_target = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = xapp
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+THUNDERBIRD_PKG_NAME = thunderbird
+THUNDERBIRD_PKG_VERSION = 115.3.1
+THUNDERBIRD_PKG_ARCH = $(PKGARCH)
+THUNDERBIRD_PKG_DISTRO_NAME = $(DISTRO_NAME)
+THUNDERBIRD_PKG_DISTRO_VERSION = $(DISTRO_VERSION)
+THUNDERBIRD_PKG_GROUP = $(PKG_GROUP)
+### |---handy-ruler-------------------------------|
+THUNDERBIRD_PKG_SHORT_DESCRIPTION = Mozilla Thunderbird mail application
+THUNDERBIRD_PKG_URL = $(BUG_URL)
+THUNDERBIRD_PKG_LICENSE = custom
+THUNDERBIRD_PKG_DESCRIPTION_FILE = $(TARGET_BUILD_DIR)/$(THUNDERBIRD_PKG_NAME)-pkg-description
+THUNDERBIRD_PKG_DESCRIPTION_FILE_IN = $(THUNDERBIRD_PKG_NAME)-pkg-description.in
+THUNDERBIRD_PKG_INSTALL_SCRIPT = $(THUNDERBIRD_PKG_NAME)-pkg-install.sh
+
+THUNDERBIRD_PKG = $(CURDIR)/$(TARGET_BUILD_DIR)/$(THUNDERBIRD_PKG_NAME)-package
+
+pkg_basename = $(THUNDERBIRD_PKG_NAME)-$(THUNDERBIRD_PKG_VERSION)-$(THUNDERBIRD_PKG_ARCH)-$(THUNDERBIRD_PKG_DISTRO_NAME)-$(THUNDERBIRD_PKG_DISTRO_VERSION)
+
+pkg_archive = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature = $(call sign-name,$(pkg_archive))
+pkg_description = $(call desc-name,$(pkg_archive))
+products = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS = $(build_target)
+BUILD_TARGETS += $(install_target)
+
+PRODUCT_TARGETS = $(products)
+
+ROOTFS_TARGETS = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(THUNDERBIRD_PKG)
+
+
+extra_configure_switches = --libdir=/usr/lib$(LIBSUFFIX)
+
+extra_configure_switches += --enable-official-branding
+extra_configure_switches += --enable-project=comm/mail
+extra_configure_switches += --enable-bootstrap
+extra_configure_switches += --with-system-zlib
+extra_configure_switches += --with-system-nss
+extra_configure_switches += --with-system-nspr
+extra_configure_switches += --with-system-icu
+extra_configure_switches += --with-system-libvpx
+extra_configure_switches += --with-system-jpeg
+extra_configure_switches += --with-unsigned-addon-scopes=app,system
+extra_configure_switches += --without-wasm-sandboxed-libraries
+extra_configure_switches += --allow-addon-sideload
+
+extra_configure_switches += --enable-alsa
+extra_configure_switches += --enable-default-toolkit=cairo-gtk3-wayland
+extra_configure_switches += --enable-linker=bfd
+extra_configure_switches += --enable-optimize
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A1X_GLIBC) $(TOOLCHAIN_A2X_GLIBC) \
+ $(TOOLCHAIN_H3_GLIBC) $(TOOLCHAIN_RK328X_GLIBC) \
+ $(TOOLCHAIN_S8XX_GLIBC) $(TOOLCHAIN_IMX6_GLIBC) \
+ $(TOOLCHAIN_AM335X_GLIBC) $(TOOLCHAIN_OMAP543X_GLIBC)),)
+extra_configure_switches += --disable-cpp-rtti
+else
+extra_configure_switches += --enable-cpp-rtti
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_JZ47XX_GLIBC) $(TOOLCHAIN_P5600_GLIBC)),)
+extra_configure_switches += --disable-jit
+endif
+
+extra_configure_switches += --enable-accessibility
+
+extra_configure_switches += --disable-strip
+extra_configure_switches += --disable-install-strip
+extra_configure_switches += --disable-crashreporter
+extra_configure_switches += --disable-debug-symbols
+extra_configure_switches += --disable-updater
+extra_configure_switches += --disable-nodejs
+extra_configure_switches += --disable-debug
+extra_configure_switches += --disable-tests
+
+#
+# NOTE:
+# ====
+#
+# Before run this Makefile we have to setup RUST compiler
+# and stable x86_64-unknown-linux-gnu toolchain with targets:
+#
+# Install RUST:
+# ------------
+# $ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
+# $ source "$HOME/.cargo/env"
+# $ rustup update
+# $ mkdir $HOME/projects
+# $ ( cd $HOME/projects ; rustup override set stable )
+#
+# List available targets:
+# ----------------------
+# $ rustc --print target-list
+#
+# Add targets:
+# -----------
+# $ rustup target add arm-unknown-linux-gnueabihf
+# $ rustup target add armv7-unknown-linux-gnueabihf
+# $ rustup target add aarch64-unknown-linux-gnu
+# $ rustup target add mipsel-unknown-linux-gnu
+# $ rustup target add powerpc-unknown-linux-gnu
+# $ rustup target add powerpc64-unknown-linux-gnu
+# $ rustup target add powerpc64le-unknown-linux-gnu
+# $ rustup target add riscv64gc-unknown-linux-gnu
+# $ rustup target add i586-unknown-linux-gnu
+# $ rustup target add i686-unknown-linux-gnu
+# $ rustup target add x86_64-unknown-linux-gnu
+#
+# Rust Target Triplets:
+# ====================
+#
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A1X_GLIBC) $(TOOLCHAIN_A2X_GLIBC) \
+ $(TOOLCHAIN_H3_GLIBC) $(TOOLCHAIN_RK328X_GLIBC) \
+ $(TOOLCHAIN_S8XX_GLIBC) $(TOOLCHAIN_IMX6_GLIBC) \
+ $(TOOLCHAIN_AM335X_GLIBC) $(TOOLCHAIN_OMAP543X_GLIBC)),)
+rust-target = arm-unknown-linux-gnueabihf
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_H5_GLIBC) $(TOOLCHAIN_RK33XX_GLIBC) \
+ $(TOOLCHAIN_RK339X_GLIBC) $(TOOLCHAIN_RK358X_GLIBC) \
+ $(TOOLCHAIN_S9XX_GLIBC) \
+ $(TOOLCHAIN_A311X_GLIBC) $(TOOLCHAIN_M1000_GLIBC)),)
+rust-target = aarch64-unknown-linux-gnu
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_JZ47XX_GLIBC) $(TOOLCHAIN_P5600_GLIBC)),)
+rust-target = mipsel-unknown-linux-gnu
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8_GLIBC) $(TOOLCHAIN_POWER9_GLIBC)),)
+rust-target = powerpc64-unknown-linux-gnu
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8LE_GLIBC) $(TOOLCHAIN_POWER9LE_GLIBC)),)
+rust-target = powerpc64le-unknown-linux-gnu
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RISCV64_GLIBC)),)
+rust-target = riscv64gc-unknown-linux-gnu
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_I586_GLIBC)),)
+rust-target = i586-unknown-linux-gnu
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_I686_GLIBC)),)
+rust-target = i686-unknown-linux-gnu
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC)),)
+rust-target = x86_64-unknown-linux-gnu
+endif
+
+#
+# RUST cannot be a cross compiler if HOST == TARGET, but
+# HOST tools should be run on build-machine
+#
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC)),)
+x86-64-dynamic-linker = -Wl,--dynamic-linker,/lib$(BUILD_MULTILIB_SUFFIX)/ld-linux-x86-64.so.2
+endif
+
+cpu-arch = $(word 1,$(subst -, ,$(rust-target)))
+
+rust-host = x86_64-unknown-linux-gnu
+
+gcc-version = $(shell $(CC) -dumpversion)
+
+binding-flags = --sysroot=$(TARGET_DEST_DIR)
+binding-flags += --target=$(TARGET)
+binding-flags += -I$(TARGET_DEST_DIR)/usr/include/c++/$(gcc-version)
+binding-flags += -I$(TARGET_DEST_DIR)/usr/include/c++/$(gcc-version)/$(TARGET)
+binding-flags += -I$(TARGET_DEST_DIR)/usr/include
+binding-flags += -I$(TARGET_DEST_DIR)/usr/lib/glib-2.0/include
+binding-flags += -I$(CURDIR)/$(SRC_DIR)/xpcom/string
+
+arch-flags = $(ARCH_FLAGS)
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A1X_GLIBC) $(TOOLCHAIN_A2X_GLIBC) \
+ $(TOOLCHAIN_H3_GLIBC) $(TOOLCHAIN_RK328X_GLIBC) \
+ $(TOOLCHAIN_OMAP543X_GLIBC)),)
+arch-flags = $(shell echo $(ARCH_FLAGS) | sed 's,\(-mfpu\)=[^ ]*,\1=vfpv3-d16,')
+endif
+
+mozilla-link-flags = --sysroot=$(TARGET_DEST_DIR) $(arch-flags)
+mozilla-link-flags += -Wl,--as-needed -Wl,--no-keep-memory
+mozilla-link-flags += -Wl,--stats -Wl,--reduce-memory-overheads
+
+suppres-c-warnings = -Wno-deprecated-declarations -Wno-unused-result -Wno-maybe-uninitialized
+suppres-c-warnings += -Wno-stringop-truncation -Wno-stringop-overflow -Wno-pointer-arith
+suppres-c-warnings += -Wno-sign-compare-Wno-unused-but-set-variable -Wno-unused-value
+suppres-c-warnings += -Wno-type-limits
+
+suppres-cxx-warnings = -Wno-deprecated-declarations -Wno-class-memaccess -Wno-invalid-offsetof
+suppres-cxx-warnings += -Wno-array-bounds -Wno-stringop-truncation -Wno-stringop-overflow
+suppres-cxx-warnings += -Wno-dangling-pointer -Wno-use-after-free -Wno-return-local-addr
+suppres-cxx-warnings += -Wno-maybe-uninitialized -Wno-pointer-arith -Wno-sign-compare
+suppres-cxx-warnings += -Wno-unused-but-set-variable -Wno-restrict -Wno-alloc-size-larger-than
+suppres-cxx-warnings += -Wno-unused-value -Wno-narrowing -Wno-free-nonheap-object
+suppres-cxx-warnings += -Wno-return-type
+
+extra_environment = CC='$(CCACHE)$(CROSS_PREFIX)gcc --sysroot=$(TARGET_DEST_DIR)'
+extra_environment += CXX='$(CCACHE)$(CROSS_PREFIX)g++ --sysroot=$(TARGET_DEST_DIR)'
+extra_environment += OBJCOPY='$(CROSS_PREFIX)objcopy'
+extra_environment += AR='$(CROSS_PREFIX)ar'
+extra_environment += NM='$(CROSS_PREFIX)nm'
+extra_environment += CFLAGS='--sysroot=$(TARGET_DEST_DIR) -I$(TARGET_DEST_DIR)/usr/include -I$(TARGET_DEST_DIR)/usr/lib/glib-2.0/include -I$(CURDIR)/$(SRC_DIR)/xpcom/string $(arch-flags) -fomit-frame-pointer $(suppres-c-warnings)'
+extra_environment += CXXFLAGS='--sysroot=$(TARGET_DEST_DIR) -I$(TARGET_DEST_DIR)/usr/include -I$(TARGET_DEST_DIR)/usr/lib/glib-2.0/include -I$(CURDIR)/$(SRC_DIR)/xpcom/string $(arch-flags) -fomit-frame-pointer $(suppres-cxx-warnings)'
+extra_environment += LDFLAGS='--sysroot=$(TARGET_DEST_DIR) $(arch-flags) $(x86-64-dynamic-linker) -Wl,-rpath-link,$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) -Wl,--as-needed -Wl,--no-keep-memory -Wl,--stats -Wl,--reduce-memory-overheads'
+extra_environment += HOST_CC='/usr/bin/gcc'
+extra_environment += HOST_CXX='/usr/bin/g++'
+extra_environment += HOST_AR='/usr/bin/ar'
+extra_environment += HOST_CFLAGS='-I/usr/include'
+extra_environment += HOST_CXXFLAGS='-I/usr/include'
+extra_environment += HOST_LDFLAGS='-L/usr/lib$(BUILD_MULTILIB_SUFFIX)'
+extra_environment += OS_TARGET=Linux
+extra_environment += OS_ARCH=$(cpu-arch)
+extra_environment += CPU_ARCH=$(cpu-arch)
+extra_environment += TARGET_CPU=$(cpu-arch)
+extra_environment += TARGET_OS=Linux
+extra_environment += MOZILLA_OFFICIAL=1
+extra_environment += BUILD_OFFICIAL=1
+extra_environment += MOZ_PHOENIX=1
+extra_environment += MOZ_PACKAGE_JSSHELL=1
+extra_environment += BINDGEN_CFLAGS='$(binding-flags)'
+extra_environment += MOZ_LINK_FLAGS='$(mozilla-link-flags)'
+extra_environment += MOZBUILD_STATE_PATH='$(CURDIR)/$(build_dir)/tmp/thunderbird-$(version)/.mozbuild'
+
+cargo-executable = $(shell which cargo)
+
+extra_environment += RUST_TARGET=$(rust-target)
+extra_environment += CARGO='$(cargo-executable)'
+extra_environment += CARGO_EXTRA_FLAGS='+stable-$(rust-host)'
+
+extra_environment += MOZ_CARGO_WRAP_HOST_LD='/usr/bin/g++'
+extra_environment += MOZ_CARGO_WRAP_HOST_LD_CXX='/usr/bin/g++'
+extra_environment += MOZ_CARGO_WRAP_HOST_LDFLAGS='-L/usr/lib$(BUILD_MULTILIB_SUFFIX)'
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+ $(UNPACK_SRC_ARCHIVE)
+ $(APPLY_PATCHES)
+ $(call apply-opt-patches, $(SRC_DIR))
+ @touch $@
+
+$(build_target): $(src_done)
+ @mkdir -p $(build_dir)/tmp
+ @cd $(build_dir) && \
+ $(extra_environment) ../$(src_dir_name)/configure \
+ --prefix=/usr \
+ --host=$(rust-host) \
+ --target=$(rust-target) \
+ $(extra_configure_switches)
+ @cd $(build_dir) && PYTHON3=/usr/bin/python3 $(MAKE)
+ @touch $@
+
+$(install_target): $(build_target)
+ @mkdir -p $(THUNDERBIRD_PKG)
+ @cd $(build_dir) && PYTHON3=/usr/bin/python3 $(MAKE) install $(env_sysroot)
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC)),)
+ifneq ($(PATCHELF),)
+ # ======= Set Interpreter for x86_64 target binaries: =======
+ @( cd $(THUNDERBIRD_PKG)/usr/lib$(LIBSUFFIX)/thunderbird ; \
+ for file in `find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+ $(PATCHELF) --set-interpreter /lib$(LIBSUFFIX)/ld-linux-x86-64.so.2 $$file 1> /dev/null 2> /dev/null ; \
+ done ; \
+ )
+endif
+endif
+ # ======= Fix duplicate binary: =======
+ @( cd $(THUNDERBIRD_PKG)/usr/lib$(LIBSUFFIX)/thunderbird ; \
+ if cmp thunderbird thunderbird-bin ; then \
+ ln -sf thunderbird-bin thunderbird ; \
+ fi ; \
+ )
+ @mkdir -p $(THUNDERBIRD_PKG)/usr/lib$(LIBSUFFIX)/mozilla/plugins
+ @( cd $(THUNDERBIRD_PKG)/usr/bin ; \
+ rm -f thunderbird ; \
+ cat $(CURDIR)/scripts/thunderbird.in | \
+ sed -e "s/@LIBDIRSUFFIX@/$(LIBSUFFIX)/g" > thunderbird ; \
+ chmod 755 thunderbird ; \
+ )
+ @mkdir -p $(THUNDERBIRD_PKG)/usr/share/applications
+ @cat $(CURDIR)/desktop/thunderbird.desktop > $(THUNDERBIRD_PKG)/usr/share/applications/thunderbird.desktop
+ @for size in 16 22 24 32 48 256 ; do \
+ install -D -m0644 \
+ $(SRC_DIR)/comm/mail/branding/thunderbird/default$${size}.png \
+ $(THUNDERBIRD_PKG)/usr/share/icons/hicolor/$${size}x$${size}/apps/thunderbird.png ; \
+ done
+ @mkdir -p $(THUNDERBIRD_PKG)/usr/share/pixmaps
+ @( cd $(THUNDERBIRD_PKG)/usr/share/pixmaps ; \
+ ln -sf ../icons/hicolor/256x256/apps/thunderbird.png . ; \
+ )
+ @install -D -m0644 \
+ $(SRC_DIR)/comm/mail/branding/thunderbird/net.thunderbird.Thunderbird.appdata.xml \
+ $(THUNDERBIRD_PKG)/usr/share/metainfo/net.thunderbird.Thunderbird.appdata.xml ; \
+ # ======= Copy over the LICENSE: =======
+ @sed -i.orig 's,toolkit/content,/usr/share/doc/$(src_dir_name),' $(SRC_DIR)/LICENSE
+ @install -p -c -m 644 $(SRC_DIR)/LICENSE $(THUNDERBIRD_PKG)/usr/lib$(LIBSUFFIX)/thunderbird/
+ # ======= Install Documentation =======
+ @if [ -d $(THUNDERBIRD_PKG)/usr/share/man ]; then \
+ ( cd $(THUNDERBIRD_PKG)/usr/share/man ; \
+ for manpagedir in `find . -type d -name "man*"` ; do \
+ ( cd $$manpagedir ; \
+ for eachpage in `find . -type l -maxdepth 1` ; do \
+ ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+ rm $$eachpage ; \
+ done ; \
+ gzip -9 *.? ; \
+ ) \
+ done \
+ ) \
+ fi
+ @mkdir -p $(THUNDERBIRD_PKG)/usr/doc/$(src_dir_name)
+ @cp -a $(SRC_DIR)/AUTHORS $(SRC_DIR)/LICENSE \
+ $(THUNDERBIRD_PKG)/usr/doc/$(src_dir_name)
+ @mkdir -p $(THUNDERBIRD_PKG)/usr/share/doc/$(src_dir_name)
+ @( cd $(SRC_DIR) ; \
+ cp -a AUTHORS LICENSE README* toolkit/content/license.html \
+ $(THUNDERBIRD_PKG)/usr/share/doc/$(src_dir_name) ; \
+ )
+ @( cd $(SRC_DIR) ; \
+ if [ -r ChangeLog -a -s ChangeLog ]; then \
+ DOCSDIR=`echo $(THUNDERBIRD_PKG)/usr/share/doc/$(src_dir_name)` ; \
+ cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+ touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+ fi \
+ )
+ # ======= Install the same to $(TARGET_DEST_DIR) =======
+ $(call install-into-devenv, $(THUNDERBIRD_PKG))
+ # ======= Strip binaries =======
+ @( cd $(THUNDERBIRD_PKG)/usr/lib$(LIBSUFFIX)/thunderbird ; \
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+ )
+ @touch $@
+
+$(THUNDERBIRD_PKG_DESCRIPTION_FILE): $(THUNDERBIRD_PKG_DESCRIPTION_FILE_IN)
+ @cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature) : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(THUNDERBIRD_PKG_DESCRIPTION_FILE) $(THUNDERBIRD_PKG_INSTALL_SCRIPT)
+ @cp $(THUNDERBIRD_PKG_DESCRIPTION_FILE) $(THUNDERBIRD_PKG)/.DESCRIPTION
+ @cp $(THUNDERBIRD_PKG_INSTALL_SCRIPT) $(THUNDERBIRD_PKG)/.INSTALL
+ @$(BUILD_PKG_REQUIRES) $(THUNDERBIRD_PKG)/.REQUIRES
+ @echo "pkgname=$(THUNDERBIRD_PKG_NAME)" > $(THUNDERBIRD_PKG)/.PKGINFO ; \
+ echo "pkgver=$(THUNDERBIRD_PKG_VERSION)" >> $(THUNDERBIRD_PKG)/.PKGINFO ; \
+ echo "arch=$(THUNDERBIRD_PKG_ARCH)" >> $(THUNDERBIRD_PKG)/.PKGINFO ; \
+ echo "distroname=$(THUNDERBIRD_PKG_DISTRO_NAME)" >> $(THUNDERBIRD_PKG)/.PKGINFO ; \
+ echo "distrover=$(THUNDERBIRD_PKG_DISTRO_VERSION)" >> $(THUNDERBIRD_PKG)/.PKGINFO ; \
+ echo "group=$(THUNDERBIRD_PKG_GROUP)" >> $(THUNDERBIRD_PKG)/.PKGINFO ; \
+ echo "short_description=\"$(THUNDERBIRD_PKG_SHORT_DESCRIPTION)\"" >> $(THUNDERBIRD_PKG)/.PKGINFO ; \
+ echo "url=$(THUNDERBIRD_PKG_URL)" >> $(THUNDERBIRD_PKG)/.PKGINFO ; \
+ echo "license=$(THUNDERBIRD_PKG_LICENSE)" >> $(THUNDERBIRD_PKG)/.PKGINFO
+ @$(PSEUDO) sh -c "cd $(THUNDERBIRD_PKG) && \
+ chown -R root:root . && \
+ $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: PATCHES
===================================================================
--- PATCHES (nonexistent)
+++ PATCHES (revision 173)
@@ -0,0 +1,2 @@
+
+../../../../sources/packages/x/mozilla/thunderbird/patches/thunderbird-115.3.1-metainfo.patch -p0
Index: PATCHES.riscv64gc
===================================================================
--- PATCHES.riscv64gc (nonexistent)
+++ PATCHES.riscv64gc (revision 173)
@@ -0,0 +1,2 @@
+
+../../../../sources/packages/x/mozilla/thunderbird/patches/thunderbird-115.3.1-riscv64gc.patch -p0
Index: PATCHES.x86
===================================================================
--- PATCHES.x86 (nonexistent)
+++ PATCHES.x86 (revision 173)
@@ -0,0 +1,2 @@
+
+../../../../sources/packages/x/mozilla/thunderbird/patches/thunderbird-115.3.1-x86.patch -p0
Index: desktop/thunderbird.desktop
===================================================================
--- desktop/thunderbird.desktop (nonexistent)
+++ desktop/thunderbird.desktop (revision 173)
@@ -0,0 +1,84 @@
+[Desktop Entry]
+Encoding=UTF-8
+Exec=thunderbird
+Icon=/usr/share/pixmaps/thunderbird.png
+Type=Application
+Categories=Application;Network;
+Name=Thunderbird
+Name[bn]=থাণ্ডারবার্ড
+Name[eo]=Mozilo Tondrobirdo
+Name[fi]=Mozilla Thunderbird
+Name[pa]=ਥੰਡਰਬਰਡ
+Name[tg]=Паррандаи бало
+GenericName=Mail Client
+GenericName[af]=Pos Kliënt
+GenericName[ar]=البريد الألكتروني
+GenericName[az]=Poçt Alıcısı
+GenericName[be]=Паштовы кліент
+GenericName[bg]=Пощенски клиент
+GenericName[bn]=ইমেইল ক্লায়েন্ট
+GenericName[br]=Arval postel
+GenericName[bs]=Program za čitanje elektronske pošte
+GenericName[ca]=Client de correu electrònic
+GenericName[cs]=Klient pro čtení elektronické pošty
+GenericName[cy]=Dibynnydd Ebost
+GenericName[da]=E-mail-klient
+GenericName[de]=E-Mail-Programm
+GenericName[el]=Πελάτης mail
+GenericName[eo]=Legi kaj sendi retpoŝton
+GenericName[es]=Cliente de correo electrónico
+GenericName[et]=Meiliklient
+GenericName[eu]=Posta bezeroa
+GenericName[fa]=کارگیر پست الکترونیکی
+GenericName[fi]=Sähköpostiohjelma
+GenericName[fo]=Postforrit
+GenericName[fr]=Logiciel de messagerie électronique
+GenericName[ga]=Cliant Ríomhphoist
+GenericName[gl]=Cliente de correo
+GenericName[he]=תוכנית דואר
+GenericName[hi]=डाकिया
+GenericName[hr]=Program za čitanje elektronske pošte
+GenericName[hu]=Levelezőprogram
+GenericName[id]=Klien Mail
+GenericName[is]=Póstforrit
+GenericName[it]=Programma di posta elettronica
+GenericName[ja]=メールクライアント
+GenericName[ko]=편지를 주고 받는 프로그램
+GenericName[lo]=ໄຄແເອັນຈົດຫມາຍເອເລັກໂຕນິກ
+GenericName[lt]=Pašto klientas
+GenericName[lv]=Pasta Klients
+GenericName[mk]=Програма за електронска пошта
+GenericName[mn]=Э-Захиа-Програм
+GenericName[mt]=Klijent tal-imejl
+GenericName[nb]=E-postklient
+GenericName[nds]=Mailprogramm
+GenericName[nl]=E-mailclient
+GenericName[nn]=Lesing og sending av e-post
+GenericName[nso]=Moreki wa Poso
+GenericName[oc]=Programari de correu electrònic
+GenericName[pa]=ਪੱਤਰ ਕਲਾਂਇਟ
+GenericName[pl]=Program do wysyłania i odbierania poczty elektronicznej
+GenericName[pt]=Client de E-mail
+GenericName[pt_BR]=Cliente de E-mail
+GenericName[ro]=Program de poştă electronică
+GenericName[ru]=Клиент электронной почты
+GenericName[se]=Boastaprográmma
+GenericName[sk]=Klient elektronickej pošty
+GenericName[sl]=Program za e-pošto
+GenericName[sr]=Програм за e-пошту
+GenericName[sr@Latn]=Program za e-poštu
+GenericName[ss]=Likhasimende leliposi
+GenericName[sv]=E-postklient
+GenericName[ta]=அஞ்சல் உறுப்பினர்
+GenericName[tg]=Коргири почтаи эллектроникӣ
+GenericName[th]=ไคลเอนต์จดหมายอิเล็กทรอนิกส์
+GenericName[tr]=Posta İstemcisi
+GenericName[uk]=Клієнт електронної пошти
+GenericName[uz]=Хат-хабар клиенти
+GenericName[ven]=Mushumisani na poso
+GenericName[wa]=Cliyint d' emilaedje
+GenericName[xh]=Umxhasi Weposi
+GenericName[zh_CN]=邮件程序
+GenericName[zh_TW]=郵件處理程式
+GenericName[zu]=Umxhasi weposi
+X-KDE-StartupNotify=true
Index: scripts/thunderbird.in
===================================================================
--- scripts/thunderbird.in (nonexistent)
+++ scripts/thunderbird.in (revision 173)
@@ -0,0 +1,9 @@
+#!/bin/sh
+#
+# Shell script to start Mozilla Thunderbird.
+#
+# Don't reset the user profile on a detected downgrade:
+export MOZ_ALLOW_DOWNGRADE=1
+
+# Start Thunderbird:
+exec /usr/lib@LIBDIRSUFFIX@/thunderbird/thunderbird "$@"
Index: thunderbird-pkg-description.in
===================================================================
--- thunderbird-pkg-description.in (nonexistent)
+++ thunderbird-pkg-description.in (revision 173)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+thunderbird: thunderbird @VERSION@ (Mozilla Thunderbird mail application)
+thunderbird:
+thunderbird: Mozilla Thunderbird is a redesign of the Mozilla mail component
+thunderbird: written using the XUL user interface language. Thunderbird makes
+thunderbird: emailing safer, faster, and easier than ever before with the
+thunderbird: industry's best implementations of features such as intelligent
+thunderbird: spam filters, built-in RSS reader, quick search, and much more.
+thunderbird:
+thunderbird: Homepage: https://www.mozilla.org/projects/thunderbird/
+thunderbird:
+thunderbird:
Index: thunderbird-pkg-install.sh
===================================================================
--- thunderbird-pkg-install.sh (nonexistent)
+++ thunderbird-pkg-install.sh (revision 173)
@@ -0,0 +1,56 @@
+#!/bin/sh
+
+# Preserve new files
+install_file() {
+ NEW="$1"
+ OLD="`dirname $NEW`/`basename $NEW .new`"
+ # If there's no file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+
+# arg 1: the new package version
+pre_install() {
+ /bin/true
+}
+
+# arg 1: the new package version
+post_install() {
+ # Update desktop database
+ if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications > /dev/null 2>&1
+ fi
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+pre_update() {
+ /bin/true
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_update() {
+ post_install
+}
+
+# arg 1: the old package version
+pre_remove() {
+ /bin/true
+}
+
+# arg 1: the old package version
+post_remove() {
+ /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*
Property changes on: thunderbird-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: .
===================================================================
--- . (nonexistent)
+++ . (revision 173)
Property changes on: .
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,74 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.rk358x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~