You are not logged in.

#1 2005-03-06 02:23:33

ganlu
Member
From: ChongQing, China
Registered: 2004-01-04
Posts: 360

[NEW] mozilla-firefox-cvs

You STILL need nonroot.tar.gz and a firefox.png, Enjoy.  2005-04-08
If anyone can provide some web space, I'll very like to upload binary arch package, since downloading source and compiling need some time.

PKGBUILD:

# Contributer: Gan Lu <rhythm.gan@gmail.com>>

pkgname=mozilla-firefox-cvs
pkgver=20050407
pkgrel=1
pkgdesc="Standalone web browser from mozilla.org"
makedepends=('zip' 'cvs')
depends=('gtk2' 'libidl2' 'mozilla-common')
confilcts=mozilla-firefox
replaces=('mozilla-firebird' 'phoenix')
url="http://www.mozilla.org/projects/firefox"
source=(mozilla-firefox-nonroot.tar.gz 
        mozconfig 
    mozilla-firefox.png 
    mozilla-firefox.desktop)

build() {
  # Setting CVS and building environment
  export CVS_PASSFILE=$startdir/src/mozilla.cvspass
  echo "/1 :pserver:anonymous@cvs-mirror.mozilla.org:2401/cvsroot A" >$startdir/src/mozilla.cvspass
#  export MOZ_OBJDIR=$startdir/src/mozilla
#  export BUILD_OFFICIAL=1
  export MOZ_PHOENIX=1

  # Getting  source via CVS
  cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot checkout mozilla/client.mk
  cd $startdir/src/mozilla
  make -f client.mk checkout MOZ_CO_PROJECT=browser

  # Creating .mozconfig file
  sed "s@#CFLAGS#@$CFLAGS@g" $startdir/src/mozconfig >.mozconfig

  make -f client.mk build || return 1
  make DESTDIR=$startdir/pkg install || return 1

  # Install files needed to run firefox in non-root user
  cd $startdir/pkg/opt/mozilla/lib && ln -sf firefox-1.0+ firefox
   tar zxf $startdir/src/mozilla-firefox-nonroot.tar.gz || return 1

  # remove some redundant files
  cd $startdir/pkg/opt/mozilla/
  rm -rf share include lib/pkgconfig bin/defaults

 # Install files in order to correctly show f.d.o specific menu item
  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 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-application=browser
#ac_add_options --enable-default-toolkit=gtk2
#ac_add_options --enable-svg
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

mozilla-firefox.desktop

[Desktop Entry]
Encoding=UTF-8
Exec=firefox %u
Icon=mozilla-firefox
Type=Application
Terminal=false
MultipleArgs=false
Name=Firefox Web Browser
Name[bn]=ফায়ারফক্স
Name[eo]=Mozilo Fajrovulpo
Name[fi]=Mozilla Firefox
Name[pa]=ਫਾਇਰਫੋਕਸ
Name[tg]=Рӯбоҳи оташин
GenericName=Web Browser
GenericName[af]=Web Blaaier
GenericName[ar]=متصفح ويب
GenericName[az]=Veb Səyyahı
GenericName[bg]=Браузър
GenericName[bn]=ওয়েব ব্রাউজার
GenericName[br]=Furcher ar Gwiad
GenericName[bs]=WWW Preglednik
GenericName[ca]=Fullejador web
GenericName[cs]=WWW prohlížeč
GenericName[cy]=Porydd Gwe
GenericName[da]=Browser
GenericName[de]=Web-Browser
GenericName[el]=Περιηγητής Ιστού
GenericName[eo]=TTT-legilo
GenericName[es]=Navegador web
GenericName[et]=Veebilehitseja
GenericName[eu]=Web arakatzailea
GenericName[fa]=مرورگر وب
GenericName[fi]=WWW-selain
GenericName[fo]=Alnótsfar
GenericName[fr]=Navigateur web
GenericName[gl]=Navegador Web
GenericName[he]=דפדפן אינטרנט
GenericName[hi]=वेब ब्राउज़र
GenericName[hr]=Web preglednik
GenericName[hu]=Webböngésző
GenericName[is]=Vafri
GenericName[it]=Browser Web
GenericName[ja]=ウェブブラウザ
GenericName[ko]=웹 브라우저
GenericName[lo]=ເວັບບຣາວເຊີ
GenericName[lt]=Žiniatinklio naršyklė
GenericName[lv]=Web Pārlūks
GenericName[mk]=Прелистувач на Интернет 
GenericName[mn]=Веб-Хөтөч
GenericName[nb]=Nettleser
GenericName[nds]=Nettkieker
GenericName[nl]=Webbrowser
GenericName[nn]=Nettlesar
GenericName[nso]=Seinyakisi sa Web
GenericName[pa]=ਵੈਬ ਝਲਕਾਰਾ
GenericName[pl]=Przeglądarka WWW
GenericName[pt]=Navegador Web
GenericName[pt_BR]=Navegador Web
GenericName[ro]=Navigator de web
GenericName[ru]=Веб-браузер
GenericName[se]=Fierpmádatlogan
GenericName[sk]=Webový prehliadač
GenericName[sl]=Spletni brskalnik
GenericName[sr]=Веб претраживач
GenericName[sr@Latn]=Veb pretraživač
GenericName[ss]=Ibrawuza yeWeb 
GenericName[sv]=Webbläsare
GenericName[ta]=வலை உலாவி
GenericName[tg]=Тафсиргари вэб
GenericName[th]=เว็บบราวเซอร์
GenericName[tr]=Web Tarayıcı
GenericName[uk]=Навігатор Тенет
GenericName[uz]=Веб-браузер
GenericName[ven]=Buronza ya Webu
GenericName[vi]=Trình duyệt Web
GenericName[wa]=Betchteu waibe
GenericName[xh]=Umkhangeli zincwadi we Web
GenericName[zh_CN]=网页浏览器
GenericName[zh_TW]=網頁瀏覽器
GenericName[zu]=Umcingi we-Web
MimeType=text/html
StartupNotify=true
Categories=Application;Network;

Offline

#2 2005-03-06 02:39:49

ganlu
Member
From: ChongQing, China
Registered: 2004-01-04
Posts: 360

Re: [NEW] mozilla-firefox-cvs

You need root account to compile, I think you have known it.  big_smile  and because I don't include non-root.run part, so you have to 1, run it as root at first time, 2, include such part yourself.
Enjoy.

Offline

Board footer

Powered by FluxBB