[arch-commits] Commit in seamonkey/repos (5 files)

Antonio Rojas arojas at archlinux.org
Fri May 14 20:40:07 UTC 2021


    Date: Friday, May 14, 2021 @ 20:40:07
  Author: arojas
Revision: 934380

archrelease: copy trunk to community-testing-x86_64

Added:
  seamonkey/repos/community-testing-x86_64/
  seamonkey/repos/community-testing-x86_64/PKGBUILD
    (from rev 934379, seamonkey/trunk/PKGBUILD)
  seamonkey/repos/community-testing-x86_64/mozconfig
    (from rev 934379, seamonkey/trunk/mozconfig)
  seamonkey/repos/community-testing-x86_64/seamonkey-rust-1.52.patch
    (from rev 934379, seamonkey/trunk/seamonkey-rust-1.52.patch)
  seamonkey/repos/community-testing-x86_64/seamonkey.install
    (from rev 934379, seamonkey/trunk/seamonkey.install)

---------------------------+
 PKGBUILD                  |   77 ++++++++++++++++++++++++++++++++++++++++++++
 mozconfig                 |   53 ++++++++++++++++++++++++++++++
 seamonkey-rust-1.52.patch |   51 +++++++++++++++++++++++++++++
 seamonkey.install         |   13 +++++++
 4 files changed, 194 insertions(+)

Copied: seamonkey/repos/community-testing-x86_64/PKGBUILD (from rev 934379, seamonkey/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2021-05-14 20:40:07 UTC (rev 934380)
@@ -0,0 +1,77 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+
+pkgname=seamonkey
+pkgver=2.53.7.1
+pkgrel=1
+pkgdesc="SeaMonkey internet suite"
+arch=('x86_64')
+license=('MPL')
+depends=('dbus-glib' 'gtk3' 'hunspell' 'icu'
+         'libevent' 'libpulse' 'libvpx' 'libxt' 'mime-types'
+         'nss' 'sqlite' 'startup-notification')
+makedepends=('autoconf2.13' 'clang' 'gtk2' 'imake' 'llvm' 'mesa' 'python2-setuptools'
+             'python2-psutil' 'rust' 'yasm' 'unzip' 'zip' 'nasm')
+optdepends=('networkmanager: Location detection via available WiFi networks'
+	    'libnotify: Notification integration'
+	    'pulseaudio: Audio support')
+url="https://www.seamonkey-project.org/"
+source=("https://archive.mozilla.org/pub/seamonkey/releases/$pkgver/source/seamonkey-$pkgver.source.tar.xz"
+        "seamonkey-rust-1.52.patch"
+        "mozconfig")
+sha256sums=('432206fe787ffb560e811d32103658d676dccb012fc7092d2071bb59729603ea'
+            '6c4db819efacef515fa6459788e69f0def98f9766e37579ff08735caaab869cc'
+            '05bbf05f6a2f060ba3b69a420d57e95766880869a3e416cb05f60894bce1213b')
+install="$pkgname.install"
+
+# Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
+# Note: These are for Arch Linux use ONLY. For your own distribution, please
+# get your own set of keys. Feel free to contact foutrelis at archlinux.org for
+# more information.
+_google_api_key=AIzaSyDwr302FpOSkGRpLlUpPThNTDPbXcIn_FM
+
+# Mozilla API keys (see https://location.services.mozilla.com/api)
+# Note: These are for Arch Linux use ONLY. For your own distribution, please
+# get your own set of keys. Feel free to contact heftig at archlinux.org for
+# more information.
+_mozilla_api_key=e05d56db0a694edc8b5aaebda3f2db6a
+
+prepare() {
+  cd "$pkgname-$pkgver"
+  cp ../mozconfig .mozconfig
+
+  patch -p1 < ../seamonkey-rust-1.52.patch # Fix build with rust 1.52 (gentoo)
+
+  echo -n "$_google_api_key" > google-api-key
+  echo -n "$_mozilla_api_key" > mozilla-api-key
+
+  cat >> .mozconfig <<EOF
+  ac_add_options --with-google-location-service-api-keyfile=${PWD at Q}/google-api-key
+  ac_add_options --with-google-safebrowsing-api-keyfile=${PWD at Q}/google-api-key
+  ac_add_options --with-mozilla-api-keyfile=${PWD at Q}/mozilla-api-key
+EOF
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+
+  make -f client.mk build
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+
+  make -f client.mk DESTDIR="$pkgdir" INSTALL_SDK= install
+
+  rm -rf "$pkgdir"/usr/lib/seamonkey/{dictionaries,hyphenation}
+  ln -s /usr/share/hunspell "$pkgdir/usr/lib/seamonkey/dictionaries"
+  ln -s /usr/share/hyphen "$pkgdir/usr/lib/seamonkey/hyphenation"
+
+  install -Dm644 comm/suite/branding/seamonkey/default128.png \
+          "$pkgdir/usr/share/pixmaps/seamonkey.png"
+
+  install -Dm644 toolkit/mozapps/installer/linux/rpm/mozilla.desktop \
+                "$pkgdir/usr/share/applications/seamonkey.desktop"
+  sed -i 's/@MOZ_APP_DISPLAYNAME@/SeaMonkey internet suite/' \
+                "$pkgdir/usr/share/applications/seamonkey.desktop"
+  sed -i 's/@MOZ_APP_NAME@/seamonkey/' "$pkgdir/usr/share/applications/seamonkey.desktop"
+}

Copied: seamonkey/repos/community-testing-x86_64/mozconfig (from rev 934379, seamonkey/trunk/mozconfig)
===================================================================
--- community-testing-x86_64/mozconfig	                        (rev 0)
+++ community-testing-x86_64/mozconfig	2021-05-14 20:40:07 UTC (rev 934380)
@@ -0,0 +1,53 @@
+ac_add_options --enable-application=comm/suite
+
+ac_add_options --prefix=/usr
+ac_add_options --libdir=/usr/lib
+ac_add_options --disable-elf-hack
+
+# System libraries
+ac_add_options --with-system-nspr
+ac_add_options --with-system-nss
+ac_add_options --with-system-jpeg
+ac_add_options --with-system-zlib
+ac_add_options --with-system-bz2
+#ac_add_options --with-system-png
+ac_add_options --with-system-libevent
+#ac_add_options --with-system-libvpx
+ac_add_options --enable-system-hunspell
+#ac_add_options --enable-system-sqlite
+ac_add_options --enable-system-ffi
+#ac_add_options --enable-system-cairo
+ac_add_options --enable-system-pixman
+ac_add_options --disable-gconf
+ac_add_options --with-system-icu
+
+# Features
+ac_add_options --enable-startup-notification
+#ac_add_options --enable-safe-browsing
+#ac_add_options --enable-gio
+#ac_add_options --disable-gstreamer
+ac_add_options --enable-pulseaudio
+
+ac_add_options --enable-calendar
+ac_add_options --enable-irc
+ac_add_options --enable-dominspector
+
+ac_add_options --enable-optimize="-O2"
+ac_add_options --enable-strip
+ac_add_options --enable-install-strip
+
+#ac_add_options --disable-gnomevfs
+ac_add_options --disable-crashreporter
+ac_add_options --disable-updater
+ac_add_options --disable-tests
+#ac_add_options --disable-installer
+
+ac_add_options --disable-webrender
+ac_add_options --disable-stylo
+
+export MOZILLA_OFFICIAL=1
+export CC=clang
+export CXX=clang++
+export AR=llvm-ar
+export NM=llvm-nm
+export RANLIB=llvm-ranlib

Copied: seamonkey/repos/community-testing-x86_64/seamonkey-rust-1.52.patch (from rev 934379, seamonkey/trunk/seamonkey-rust-1.52.patch)
===================================================================
--- community-testing-x86_64/seamonkey-rust-1.52.patch	                        (rev 0)
+++ community-testing-x86_64/seamonkey-rust-1.52.patch	2021-05-14 20:40:07 UTC (rev 934380)
@@ -0,0 +1,51 @@
+http://www.wg9s.com/comm-253/patches/seamonkey-253-patches/mozilla-release/patches/1670538-87a1.patch
+
+--- seamonkey-2.53.7.1/config/rules.mk
++++ seamonkey-2.53.7.1/config/rules.mk
+@@ -861,16 +861,27 @@
+ # Versions of rust >= 1.45 need -Cembed-bitcode=yes for all crates when
+ # using -Clto.
+ ifeq (,$(filter 1.37.% 1.38.% 1.39.% 1.40.% 1.41.% 1.42.% 1.43.% 1.44.%,$(RUSTC_VERSION)))
+ RUSTFLAGS += -Cembed-bitcode=yes
+ endif
+ endif
+ endif
+ 
++ifndef RUSTC_BOOTSTRAP
++ifeq (,$(filter 1.47.% 1.48.% 1.49.%,$(RUSTC_VERSION)))
++# RUSTC_BOOTSTRAP := gkrust_shared,qcms for later
++RUSTC_BOOTSTRAP := gkrust_shared
++ifdef MOZ_RUST_SIMD
++RUSTC_BOOTSTRAP := $(RUSTC_BOOTSTRAP),encoding_rs,packed_simd
++endif
++export RUSTC_BOOTSTRAP
++endif
++endif
++
+ rustflags_override = RUSTFLAGS='$(MOZ_RUST_DEFAULT_FLAGS) $(RUSTFLAGS)'
+ 
+ ifdef MOZ_MSVCBITS
+ # If we are building a MozillaBuild shell, we want to clear out the
+ # vcvars.bat environment variables for cargo builds. This is because
+ # a 32-bit MozillaBuild shell on a 64-bit machine will try to use
+ # the 32-bit compiler/linker for everything, while cargo/rustc wants
+ # to use the 64-bit linker for build.rs scripts. This conflict results
+--- seamonkey-2.53.7.1/toolkit/library/rust/shared/build.rs.1670538.later
++++ seamonkey-2.53.7.1/toolkit/library/rust/shared/build.rs.1670538.later
+@@ -0,0 +1,16 @@
++--- build.rs
+++++ build.rs
++@@ -17,12 +17,12 @@ fn main() {
++     } else if std::env::var("MOZ_AUTOMATION").is_ok() {
++         panic!("Builds on automation must use a version of rust for which we know how to hook OOM: want < {}, have {}",
++                max_oom_hook_version, ver);
++     }
++ 
++     // This is a rather awful thing to do, but we're only doing it on
++     // versions of rustc that are not going to change the unstable APIs
++     // we use from under us, all being already released or beta.
++-    if bootstrap {
+++    if bootstrap && ver < Version::parse("1.50.0").unwrap() {
++         println!("cargo:rustc-env=RUSTC_BOOTSTRAP=1");
++     }
++ }

Copied: seamonkey/repos/community-testing-x86_64/seamonkey.install (from rev 934379, seamonkey/trunk/seamonkey.install)
===================================================================
--- community-testing-x86_64/seamonkey.install	                        (rev 0)
+++ community-testing-x86_64/seamonkey.install	2021-05-14 20:40:07 UTC (rev 934380)
@@ -0,0 +1,13 @@
+post_upgrade() {
+    # This currently triggers every time the new version has a pkgver (not pkgrel)
+    # greater than the previous version. Rationale: upstream's prominent release
+    # notes as described here: https://bbs.archlinux.org/viewtopic.php?pid=1903689#p1903689
+    if (( $(vercmp $2 ${1%-*}) < 0 )); then
+        cat << __EOF__
+SeaMonkey ${1%-*} makes changes to your profile that can't be reverted in case
+you want to go back to a previous version of SeaMonkey. Make a full backup of
+your profile and thoroughly read and follow the Release Notes at
+https://www.seamonkey-project.org/releases/seamonkey${1%-*}."
+__EOF__
+    fi
+}



More information about the arch-commits mailing list