LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1013|回复: 3

[PKGBUILD]mozilla-firefox nightly

[复制链接]
发表于 2005-3-6 10:04:42 | 显示全部楼层 |阅读模式
我相信不少的用户都和我一样,想早点体验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
 楼主| 发表于 2005-3-6 10:42:26 | 显示全部楼层
编译时,你需要root权限。由于我没有包括non-root的部分,所以,你要么在第一次运行时使用root帐户;或者自己包括那个部分。
回复 支持 反对

使用道具 举报

发表于 2005-3-6 14:05:10 | 显示全部楼层
编辑一下去掉表情转义符吧……
回复 支持 反对

使用道具 举报

发表于 2005-6-8 10:43:22 | 显示全部楼层
编译firefox可是很痛苦的事情
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表