wok view seamonkey/receipt @ rev 25689

updated mmv (1.01b-18 -> 2.6)
author Hans-G?nter Theisgen
date Sat Apr 13 10:48:47 2024 +0100 (7 months ago)
parents 934055de50e2
children
line source
1 # SliTaz package receipt.
3 PACKAGE="seamonkey"
4 VERSION="2.7.2"
5 CATEGORY="network"
6 SHORT_DESC="Seamonkey suite (browser, mail, news reader)."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL MPL"
9 TARBALL="$PACKAGE-$VERSION.source.tar.bz2"
10 WEB_SITE="https://www.seamonkey-project.org/"
11 WGET_URL="https://archive.mozilla.org/pub/seamonkey/releases/$VERSION/source/$TARBALL"
12 TAGS="web-browser"
14 DEPENDS="gtk+ glib jpeg xorg-libX11 libIDL alsa-lib xorg-libXt curl libnotify \
15 libevent libvpx"
16 BUILD_DEPENDS="gtk+-dev zip libIDL coreutils xorg-libXft-dev libevent-dev \
17 libvpx-dev perl alsa-lib alsa-lib-dev findutils python python-dev \
18 wireless_tools-dev mesa-dev yasm libnotify-dev curl-dev hunspell-dev"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - $WEB_SITE 2>/dev/null | \
24 sed '/SeaMonkey [0-9]/!d;s|.*SeaMonkey ||;s|".*||;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 sed -i -e 's|return true|return boolean(true)|' \
31 -e 's|return false|return boolean(false)|' \
32 mozilla/image/decoders/nsJPEGDecoder.cpp
33 sed -i -e 's|return 1|return boolean(1)|' \
34 -e 's|\(jpeg_.*\)1)|\1boolean(1))|' \
35 mozilla/image/encoders/jpeg/nsJPEGEncoder.cpp
37 grep -rsl 'uname -m' $src | xargs sed -i 's|uname -m|echo i686|'
38 cp -a $stuff/seamonkey.mozconfig $src/.mozconfig
39 cd $src
40 sed -i -e 's/USE_INPUT_PARTITION/USE_INPUT_FRAGMENTS/' \
41 -e 's/0.9.7/1.0.0/' mozilla/configure.in mozilla/configure
42 #patch -p1 -i $stuff/google-breakpad.u || exit 1
43 cat >> mozilla/layout/build/Makefile.in << "EOF"
44 ifdef MOZ_ENABLE_CANVAS
45 EXTRA_DSO_LDOPTS += $(XLDFLAGS) -lX11 -lXrender
46 endif
47 EOF
48 unset CFLAGS
49 unset CXXFLAGS
50 patch -Np1 -i $stuff/seamonkey-2.0-lang.patch
51 patch -Np1 -i $stuff/seamonkey-install-dir.patch
52 export LDFLAGS="$LDFLAGS -Wl,-rpath,/usr/lib/seamonkey"
53 ./configure $CONFIGURE_ARGS 2>&1 | grep -v 'cthandlers/calendar/Makefile.in' &&
54 make &&
55 make DESTDIR=$DESTDIR install
56 }
58 # Rules to gen a SliTaz package suitable for Tazpkg.
59 genpkg_rules()
60 {
61 mkdir -p $fs/usr/bin $fs/usr/lib $fs/etc
62 cp -a $install/usr/bin/seamonkey $fs/usr/bin
63 cp -a $install/usr/lib/seamonkey $fs/usr/lib
64 # Home page, bookmarks file and branding.
65 cp -a $stuff/bookmarks.html \
66 $fs/usr/lib/$PACKAGE/defaults/profile
67 # User preference.
68 cp -a $stuff/userChrome.css \
69 $fs/usr/lib/$PACKAGE/defaults/profile/chrome
70 # Move default config to /etc/seamonkey (/usr maybe read-only)
71 mv -f $fs/usr/lib/$PACKAGE/defaults $fs/etc/$PACKAGE
72 ln -sf /etc/$PACKAGE $fs/usr/lib/$PACKAGE/defaults
73 # Remove unecessary file and set permissions.
74 rm -rf $fs/etc/seamonkey/profile/US
75 chown -R root.root $fs/etc
77 # Create default user preference file
78 cp $stuff/prefs.js $fs/etc/seamonkey/profile/prefs.js
79 }