2014-06-18 05:08:57 +00:00
|
|
|
# $Id$
|
|
|
|
# Maintainer: Kyle Keen <keenerd@gmail.com>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - mozconfig additions used in xulrunner, just in case
|
|
|
|
|
|
|
|
pkgname=seamonkey
|
2016-03-14 19:06:56 +00:00
|
|
|
pkgver=2.40
|
2016-12-01 13:48:37 +00:00
|
|
|
pkgrel=7
|
2014-06-18 05:08:57 +00:00
|
|
|
pkgdesc="SeaMonkey internet suite"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
license=('MPL')
|
2015-10-05 18:12:20 +00:00
|
|
|
depends=('alsa-lib' 'dbus-glib' 'desktop-file-utils' 'gtk2' 'hunspell' 'libevent' 'libnotify' 'libvpx' 'libxt' 'mime-types' 'mozilla-common' 'nss' 'sqlite' 'startup-notification' 'libpulse' 'icu' 'gconf')
|
2016-03-12 14:50:35 +00:00
|
|
|
makedepends=('unzip' 'zip' 'pkg-config' 'python2' 'yasm' 'wireless_tools' 'mesa' 'autoconf2.13' 'imake' 'python3' 'gst-plugins-base')
|
|
|
|
optdepends=('gst-plugins-base: vorbis decoding, ogg demuxing'
|
|
|
|
'gst-plugins-bad: aac, vp8 and opus decoding'
|
|
|
|
'gst-plugins-good: webm and mp4 demuxing'
|
|
|
|
'gst-plugins-ugly: h.264 decoding')
|
2014-06-18 05:08:57 +00:00
|
|
|
url="http://www.seamonkey-project.org/"
|
2015-10-05 18:12:20 +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
|
2016-06-18 17:40:25 +00:00
|
|
|
rhbz-966424.patch
|
|
|
|
mozilla-1245076.patch
|
|
|
|
mozilla-1245076-1.patch)
|
2016-03-14 19:06:56 +00:00
|
|
|
md5sums=('5789df8f96e14577c275f10fdf8462f3'
|
2016-06-25 01:51:01 +00:00
|
|
|
'2111b1c045308ba8c5647135c2307191'
|
2014-06-18 05:08:57 +00:00
|
|
|
'25b6fe16ac24cd5c852213e5c1adb272'
|
2016-06-18 17:40:25 +00:00
|
|
|
'8c1578232b7a60fa1caa9a0b322d1e2b'
|
|
|
|
'43550e772f110a338d5a42914ee2c3a6'
|
|
|
|
'772aac58e3a7e8a32bedd898bc35dc90')
|
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
|
|
|
|
echo "ac_add_options --enable-gstreamer=1.0" >> .mozconfig
|
|
|
|
|
2014-09-21 16:41:49 +00:00
|
|
|
# https://bugs.archlinux.org/task/41689
|
|
|
|
patch -Np1 -d mozilla -i ../../rhbz-966424.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
|
|
|
|
|
|
|
# GCC 6
|
|
|
|
patch -Np1 -d mozilla -i ../../mozilla-1245076.patch
|
|
|
|
patch -Np1 -d mozilla -i ../../mozilla-1245076-1.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"
|
|
|
|
|
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}
|
|
|
|
}
|