PKGBUILDs/community/seamonkey/PKGBUILD

114 lines
4.5 KiB
Bash
Raw Normal View History

2014-06-18 05:08:57 +00:00
# Maintainer: Kyle Keen <keenerd@gmail.com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - mozconfig additions used in xulrunner, just in case
2016-12-23 14:31:58 +00:00
highmem=1
2014-06-18 05:08:57 +00:00
pkgname=seamonkey
2018-07-29 22:24:10 +00:00
pkgver=2.49.4
2020-04-11 01:40:53 +00:00
pkgrel=5
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')
2018-09-11 03:27:15 +00:00
depends=('alsa-lib' 'dbus-glib' 'desktop-file-utils' 'gtk2' 'gtk3' 'hunspell' 'libevent' 'libnotify' 'libvpx' 'libxt' 'mime-types' 'mozilla-common' 'nss' 'sqlite' 'startup-notification' 'libpulse' 'icu')
2020-04-11 01:40:53 +00:00
makedepends=('unzip' 'zip' 'python2' 'yasm' 'mesa' 'autoconf2.13' 'imake' 'python3' 'gst-plugins-base')
2016-03-12 14:50:35 +00:00
optdepends=('gst-plugins-base: vorbis decoding, ogg demuxing'
'gst-plugins-bad: aac, vp8 and opus decoding'
'gst-plugins-good: webm and mp4 demuxing'
2020-04-11 01:40:53 +00:00
'gst-plugins-ugly: h.264 decoding'
'networkmanager: Location detection via available WiFi networks')
url="https://www.seamonkey-project.org/"
2018-06-25 05:59:04 +00:00
source=("https://archive.mozilla.org/pub/mozilla.org/seamonkey/releases/$pkgver/source/seamonkey-$pkgver.source.tar.xz"
2014-06-18 05:08:57 +00:00
mozconfig
seamonkey-2.0-lang.patch
2018-06-25 05:59:04 +00:00
patch-bug1435212.xz
2020-04-11 01:40:53 +00:00
gettid.patch
2017-06-28 20:01:30 +00:00
no-crmf.diff
2016-12-23 14:31:58 +00:00
xulrunner-27.0-build-arm.patch)
2018-07-29 22:24:10 +00:00
sha256sums=('c8a66774d0a3525698b559fa2c41397186f2de99c5733e35b8eafb0ae5ccc4ee'
2018-09-11 03:27:15 +00:00
'6ff9fd323eec175eb02cfefd3136c79491c3b40be0b1f899da7c75c2f76259ca'
2017-01-28 18:04:16 +00:00
'ab19d10fbd6258aec37ab5e5efb12429814b2c24a1193284a48dd654311b4e2e'
2018-06-25 05:59:04 +00:00
'dce68858694f820a9a1fc2428038a88ea00b4835cea0778734db794fea3bb21a'
2020-04-11 01:40:53 +00:00
'923154d052f041af15a2495ceb1f76f7c8619fd8bfc66a0bbedfeab2514adf0b'
2017-06-28 20:01:30 +00:00
'fb85a538044c15471c12cf561d6aa74570f8de7b054a7063ef88ee1bdfc1ccbb'
2017-01-28 18:04:16 +00:00
'bc83b8a51c81a401da2fbe1f7cd0843248c32607d3a51119585df074d797922e')
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
2014-12-08 03:45:10 +00:00
#patch -Np1 -i ../seamonkey-2.0-lang.patch
2014-06-18 05:08:57 +00:00
2016-03-12 14:50:35 +00:00
# FS#48404
2016-12-23 14:31:58 +00:00
#echo "ac_add_options --enable-gstreamer=1.0" >> .mozconfig
2016-03-12 14:50:35 +00:00
2018-06-25 05:59:04 +00:00
# ffmpeg 4.0 patch from freebsd
# https://github.com/freebsd/freebsd-ports/blob/master/www/seamonkey/files/patch-bug1435212
patch -Np1 -d mozilla -i ../../patch-bug1435212
2017-01-28 18:04:16 +00:00
2020-04-11 01:40:53 +00:00
# https://bugzilla.mozilla.org/show_bug.cgi?id=1533969
patch -Np1 -i ../gettid.patch
2014-06-18 05:08:57 +00:00
# Don't exit with error when some libs are missing which we have in
# system.
sed -i '/^MOZ_PKG_FATAL_WARNINGS/s@= 1@= 0@' suite/installer/Makefile.in
# configure script misdetects the preprocessor without an optimization level
sed -i '/ac_cpp=/s/$CPPFLAGS/& -O2/' configure
# 2.26 build fix from wgnie (blfs ch 37)
sed -i 's/$(MOZ_ZLIB_CFLAGS)/& $(MOZ_PIXMAN_CFLAGS)/' config/config.mk
2016-06-18 17:40:25 +00:00
2017-06-28 20:01:30 +00:00
# work around from FS#54395
patch -Np1 -d mozilla -i ../../no-crmf.diff
sed -i "s/'crmf',//" mozilla/security/manager/ssl/moz.build
2018-06-25 05:59:04 +00:00
sed -i 's/^.*-lcrmf/#&/' mozilla/config/external/nss/crmf/moz.build
sed -i 's/ -lcrmf"/"/' mozilla/old-configure.in.orig
sed -i 's/ -lcrmf"/"/' mozilla/old-configure
sed -i 's/SDK_LIBS = crmf/SDK_LIBS = /' mozilla/config/external/nss/Makefile.in
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
export LDFLAGS="$LDFLAGS -Wl,-rpath,/usr/lib/seamonkey-$pkgver"
export MOZ_MAKE_FLAGS="$MAKEFLAGS"
unset MAKEFLAGS
unset CPPFLAGS
2016-06-22 04:12:23 +00:00
# GCC 6
CFLAGS+=" -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2"
CXXFLAGS+=" -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2"
2020-04-11 01:40:53 +00:00
# GCC 9
CXXFLAGS+=" -Wno-format-overflow"
2014-06-18 05:08:57 +00:00
make -j1 -f client.mk build
}
package() {
2015-11-12 00:38:59 +00:00
cd "$pkgname-$pkgver"
2014-06-18 05:08:57 +00:00
make -j1 -f client.mk DESTDIR="$pkgdir" INSTALL_SDK= install
rm -rf "$pkgdir"/usr/lib/seamonkey-$pkgver/{dictionaries,hyphenation}
ln -s /usr/share/hunspell "$pkgdir/usr/lib/seamonkey-$pkgver/dictionaries"
ln -s /usr/share/hyphen "$pkgdir/usr/lib/seamonkey-$pkgver/hyphenation"
install -Dm644 suite/branding/nightly/icons/gtk/seamonkey.png \
"$pkgdir/usr/share/pixmaps/seamonkey.png"
install -Dm644 mozilla/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"
rm -f "$pkgdir/usr/lib/pkgconfig/"seamonkey-ns{s,pr}.pc
#rm -r "$pkgdir"/usr/{include,lib/seamonkey-devel-$pkgver,share/idl}
}