|
我相信不少的用户都和我一样,想早点体验firefox新版本的改进,虽然mozilla官方有发布的binary版本,可以和scim经常冲突,所以here we go:
PKGBUILD:
# Contributer: Gan Lu <rhythm_gan@yahoo.com.cn>
pkgname=mozilla-firefox
pkgver=20050305
pkgrel=1
pkgdesc="Standalone web browser from mozilla.org"
makedepends=('zip' 'cvs')
depends=('gtk2' 'libidl2' 'gcc')
replaces=('mozilla-firebird' 'phoenix')
url="http://www.mozilla.org/projects/firefox"
source=(mozconfig mozilla-firefox.desktop mozilla-firefox.png)
build() {
export CVSROOT=:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot
sed "s@#CFLAGS#@$CFLAGS@g" $startdir/src/mozconfig >.mozconfig
cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot checkout mozilla/client.mk
cd $startdir/src/mozilla
make -f client.mk checkout
make -f client.mk build || return 1
mkdir -p $startdir/pkg/opt/$pkgname $startdir/pkg/usr/bin
make DESTDIR=$startdir/pkg install || return 1
cd $startdir/pkg/opt/mozilla/lib && ln -sf firefox-$pkgver firefox
# Remove some useless default profile setup and folders
rm -rf $startdir/pkg/opt/mozilla/bin/defaults
rm -rf $startdir/pkg/opt/mozilla/share
rm -rf $startdir/pkg/opt/mozilla/lib/pkgconfig
rm -rf $startdir/pkg/opt/mozilla/include
# Place these in /usr until all common desktops support icon lookups in XDG_DATA_DIRS
install -m755 $startdir/pkg/opt/mozilla/bin/firefox $startdir/pkg/usr/bin/firefox
install -dD -m755 $startdir/pkg/usr/share/applications
install -dD -m755 $startdir/pkg/usr/share/pixmaps
install -m644 $startdir/src/mozilla-firefox.png $startdir/pkg/usr/share/pixmaps/
install -m644 $startdir/src/mozilla-firefox.desktop $startdir/pkg/usr/share/applications/
}
mozconfig:
# options to build Firefox
mk_add_options MOZ_CO_PROJECT=browser
ac_add_options --enable-application=browser
export BUILD_OFFICIAL=1
mk_add_options BUILD_OFFICIAL=1
# load defaults from src tarball
#. $topsrcdir/browser/config/mozconfig
# Options for 'configure' (same as command-line options).
ac_add_options --disable-accessibility
ac_add_options --disable-debug
ac_add_options --disable-freetype2
ac_add_options --disable-installer
ac_add_options --disable-jsd
ac_add_options --disable-pedantic
#ac_add_options --disable-shared
ac_add_options --disable-tests
ac_add_options --disable-mailnews
ac_add_options --disable-calendar
ac_add_options --disable-composer
ac_add_options --disable-profilesharing
ac_add_options --enable-default-toolkit=gtk2
ac_add_options --enable-plaintext-editor-only
#ac_add_options --enable-static
ac_add_options --enable-xft
ac_add_options --enable-single-profile
ac_add_options --enable-crypto
ac_add_options --enable-extensions=cookie,xml-rpc,xmlextras,pref,transformiix,universalchardet,webservices
## processor optimization options
ac_add_options --enable-optimize="#CFLAGS#"
# Set the environment variable
ac_add_options --prefix=/opt/mozilla
ac_add_options --with-default-mozilla-five-home=/opt/mozilla/lib/firefox
或者直接下载附件。如果有谁能够提供地方,我可以上传编译好的包。要知道下载和编译需要不少时间。 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|