Package Details: seamonkey 2.53.19-1

Git Clone URL: https://aur.archlinux.org/seamonkey.git (read-only, click to copy)
Package Base: seamonkey
Description: SeaMonkey internet suite
Upstream URL: https://www.seamonkey-project.org
Licenses: MPL-2.0
Submitter: arojas
Maintainer: micwoj92
Last Packager: micwoj92
Votes: 8
Popularity: 0.66
First Submitted: 2023-04-01 17:30 (UTC)
Last Updated: 2024-09-09 18:22 (UTC)

Sources (4)

Latest Comments

« First ‹ Previous 1 2 3 4

giannis-arch commented on 2023-06-01 17:50 (UTC) (edited on 2023-06-02 15:49 (UTC) by giannis-arch)

seamonkey 2.53.16 with rust 1.69 & python 3.11.3 PKGBUILD


# Maintainer: Kyle Keen <keenerd@gmail.com>

pkgname=seamonkey
pkgver=2.53.16
pkgrel=1
pkgdesc="SeaMonkey internet suite with built python 3.11.3-1"
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' 'imake' 'llvm' 'mesa' 'python'
             'rustup' 'yasm' 'unzip' 'zip' 'nasm' 'cbindgen')
optdepends=('libnotify: Notification integration')
_python2_pkgver=2.7.18
url="https://www.seamonkey-project.org/"
source=("https://archive.mozilla.org/pub/seamonkey/releases/$pkgver/source/seamonkey-$pkgver.source.tar.xz"
        "mozconfig"
        "https://www.python.org/ftp/python/$_python2_pkgver/Python-$_python2_pkgver.tar.xz"{,.asc}
        "https://github.com/BioMike/gentoo-seamonkey-patches/raw/main/seamonkey/1018_seamonkey_2.53.15-PY3.11_support.patch")
noextract=(seamonkey-${pkgver}.${_lang}.langpack.xpi)
sha256sums=('SKIP'
            'SKIP'
            'b62c0e7937551d0cc02b8fd5cb0f544f9405bafc9a54d3808ed4594812edef43'
            'SKIP'
            'SKIP')
validpgpkeys=('C01E1CAD5EA2C4F0B8E3571504C367C218ADD4FF')  # Benjamin Peterson
install="$pkgname.install"
options=(!lto)

# 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@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, pleas
# get your own set of keys. Feel free to contact heftig@archlinux.org for
# more information.
_mozilla_api_key=e05d56db0a694edc8b5aaebda3f2db6a

prepare() {
  sed   -i -e 's/'rU'/'r'/g' "${srcdir}/seamonkey-${pkgver}"/python/mozbuild/mozbuild/util.py
  sed   -i -e 's/'rU'/'r'/g' "${srcdir}/seamonkey-${pkgver}"/python/mozbuild/mozbuild/preprocessor.py
  sed   -i -e 's/'rU'/'r'/g' "${srcdir}/seamonkey-${pkgver}"/testing/web-platform/tests/tools/py/py/_path/common.py
  sed   -i -e 's/'rU'/'r'/g' "${srcdir}/seamonkey-${pkgver}"/build/pymake/tests/formattingtests.py
  sed   -i -e 's/'rU'/'r'/g' "${srcdir}/seamonkey-${pkgver}"/build/pymake/mkformat.py
  sed   -i -e 's/'rU'/'r'/g' "${srcdir}/seamonkey-${pkgver}"/build/pymake/mkparse.py
  sed   -i -e 's/'rU'/'r'/g' "${srcdir}/seamonkey-${pkgver}"/third_party/python/py/py/_path/common.py
  sed   -i -e 's/2.53.15/2.53.16/g'  "${srcdir}"/1018_seamonkey_2.53.15-PY3.11_support.patch

  cd "$pkgname-$pkgver"
  cp ../mozconfig .mozconfig
  cd ..
  patch -p1 -d $pkgname-$pkgver -i ../1018_seamonkey_2.53.15-PY3.11_support.patch

  rustup toolchain install 1.69.0

  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@Q}/google-api-key
  ac_add_options --with-google-safebrowsing-api-keyfile=${PWD@Q}/google-api-key
  ac_add_options --with-mozilla-api-keyfile=${PWD@Q}/mozilla-api-key
EOF
}

build() {
  #Python 2 is EOL https://bugzilla.mozilla.org/show_bug.cgi?id=1756371
  cd "Python-$_python2_pkgver"
  ./configure --prefix=/usr \
              --disable-optimizations \
              --without-lto \
              --without-ensurepip
  DESTDIR="$srcdir"/fakeinstall make install
  cd ..
  export PATH="$PWD/fakeinstall/usr/bin:$PATH"
  cd "$pkgname-$pkgver"

  ./mach build
}

package() {
  cd "$pkgname-$pkgver"

  DESTDIR="$pkgdir" INSTALL_SDK= ./mach 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"
}
</code>

giannis-arch commented on 2023-04-28 18:01 (UTC)

The seamonkey 2.53.16 built normally without issues with rust v1.63.0 The issue https://bugzilla.mozilla.org/show_bug.cgi?id=1783784 is fixed.