2014-06-18 05:08:57 +00:00
|
|
|
# Maintainer: Kyle Keen <keenerd@gmail.com>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
2020-05-26 14:39:53 +00:00
|
|
|
# - mozconfig changes
|
|
|
|
# - patch to fix neon usage
|
2014-06-18 05:08:57 +00:00
|
|
|
|
2016-12-23 14:31:58 +00:00
|
|
|
highmem=1
|
2020-05-26 14:39:53 +00:00
|
|
|
buildarch=12
|
2016-12-23 14:31:58 +00:00
|
|
|
|
2014-06-18 05:08:57 +00:00
|
|
|
pkgname=seamonkey
|
2021-05-17 16:23:27 +00:00
|
|
|
pkgver=2.53.7.1
|
|
|
|
pkgrel=1
|
2014-06-18 05:08:57 +00:00
|
|
|
pkgdesc="SeaMonkey internet suite"
|
2018-02-06 01:58:02 +00:00
|
|
|
arch=('x86_64')
|
2014-06-18 05:08:57 +00:00
|
|
|
license=('MPL')
|
2020-05-26 02:37:42 +00:00
|
|
|
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'
|
2020-11-14 16:27:06 +00:00
|
|
|
'python2-psutil' 'rust' 'yasm' 'unzip' 'zip' 'nasm')
|
2020-05-26 02:37:42 +00:00
|
|
|
optdepends=('networkmanager: Location detection via available WiFi networks'
|
|
|
|
'libnotify: Notification integration'
|
|
|
|
'pulseaudio: Audio support')
|
2020-04-11 01:40:53 +00:00
|
|
|
url="https://www.seamonkey-project.org/"
|
2020-05-26 02:37:42 +00:00
|
|
|
source=("https://archive.mozilla.org/pub/seamonkey/releases/$pkgver/source/seamonkey-$pkgver.source.tar.xz"
|
2021-05-17 16:23:27 +00:00
|
|
|
"seamonkey-rust-1.52.patch"
|
2020-05-26 02:37:42 +00:00
|
|
|
"mozconfig"
|
|
|
|
"xulrunner-27.0-build-arm.patch")
|
2021-05-17 16:23:27 +00:00
|
|
|
sha256sums=('432206fe787ffb560e811d32103658d676dccb012fc7092d2071bb59729603ea'
|
|
|
|
'6c4db819efacef515fa6459788e69f0def98f9766e37579ff08735caaab869cc'
|
|
|
|
'2b1404af0c6db2602bdf6449a936d04fbb6e97299addd5e21c55b0ceff43d891'
|
2017-01-28 18:04:16 +00:00
|
|
|
'bc83b8a51c81a401da2fbe1f7cd0843248c32607d3a51119585df074d797922e')
|
2020-05-26 02:37:42 +00:00
|
|
|
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@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@archlinux.org for
|
|
|
|
# more information.
|
|
|
|
_mozilla_api_key=e05d56db0a694edc8b5aaebda3f2db6a
|
2014-06-18 05:08:57 +00:00
|
|
|
|
|
|
|
prepare() {
|
2015-11-12 00:38:59 +00:00
|
|
|
cd "$pkgname-$pkgver"
|
2014-06-18 05:08:57 +00:00
|
|
|
cp ../mozconfig .mozconfig
|
|
|
|
|
2021-05-17 16:23:27 +00:00
|
|
|
patch -p1 < ../seamonkey-rust-1.52.patch # Fix build with rust 1.52 (gentoo)
|
2020-12-22 15:02:12 +00:00
|
|
|
|
2020-05-26 02:37:42 +00:00
|
|
|
echo -n "$_google_api_key" > google-api-key
|
|
|
|
echo -n "$_mozilla_api_key" > mozilla-api-key
|
2014-06-18 05:08:57 +00:00
|
|
|
|
2020-05-26 02:37:42 +00:00
|
|
|
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
|
2020-05-26 14:39:53 +00:00
|
|
|
|
|
|
|
# ALARM
|
|
|
|
ac_add_options --disable-webrtc
|
2020-05-26 02:37:42 +00:00
|
|
|
EOF
|
2017-06-28 20:01:30 +00:00
|
|
|
|
2016-12-23 16:55:59 +00:00
|
|
|
[[ $CARCH != "aarch64" ]] && echo "ac_add_options --disable-elf-hack" >> .mozconfig
|
2016-12-23 14:31:58 +00:00
|
|
|
LDFLAGS+=" -Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
|
|
|
|
patch -p2 -d mozilla -i "${srcdir}"/xulrunner-27.0-build-arm.patch
|
2014-06-18 05:08:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2015-11-12 00:38:59 +00:00
|
|
|
cd "$pkgname-$pkgver"
|
2014-06-18 05:08:57 +00:00
|
|
|
|
2020-05-26 02:37:42 +00:00
|
|
|
make -f client.mk build
|
2014-06-18 05:08:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2015-11-12 00:38:59 +00:00
|
|
|
cd "$pkgname-$pkgver"
|
2014-06-18 05:08:57 +00:00
|
|
|
|
2020-05-26 02:37:42 +00:00
|
|
|
make -f client.mk DESTDIR="$pkgdir" INSTALL_SDK= install
|
2014-06-18 05:08:57 +00:00
|
|
|
|
2020-05-26 02:37:42 +00:00
|
|
|
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"
|
2014-06-18 05:08:57 +00:00
|
|
|
|
2021-05-17 16:23:27 +00:00
|
|
|
install -Dm644 comm/suite/branding/seamonkey/default128.png \
|
2020-05-26 02:37:42 +00:00
|
|
|
"$pkgdir/usr/share/pixmaps/seamonkey.png"
|
2014-06-18 05:08:57 +00:00
|
|
|
|
2021-05-17 16:23:27 +00:00
|
|
|
install -Dm644 toolkit/mozapps/installer/linux/rpm/mozilla.desktop \
|
2014-06-18 05:08:57 +00:00
|
|
|
"$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"
|
|
|
|
}
|