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