You are not logged in.

#1 2005-04-04 03:15:01

miqorz
Member
Registered: 2004-12-31
Posts: 475

[new] firefox 1.0.2

Well, I've built firedfox 1.0.2

Here's the PKGBUILD

pkgname=mozilla-firefox
pkgver=1.0.2
pkgrel=1
pkgdesc="Standalone web browser from mozilla.org"
makedepends=('zip')
depends=('gtk2' 'libidl2' 'mozilla-common')
replaces=('mozilla-firebird' 'phoenix')
url="http://www.mozilla.org/projects/firefox"
source=(ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$pkgver/source/firefox-$pkgver-source.tar.bz2 
        mozilla-firefox-nonroot.tar.gz mozconfig launcher.patch 
        mozilla-1.7.3-ft2.patch mozilla-firefox.png 
        mozilla-firefox.desktop)
md5sums=('fd1a0dec3e763e93eb45c0c34b399712' 'c28385288eb9a9cefba21d62d7870cfd'
         'd640068adccc968dbb88fdb08c9d0403' '224962b5f2446cab7727fdf07fd526de'
         'e79634ee1e611182b6c227daa362b20d' 'bff260036c5dcca45da3218517fb33d8'
         '2b6a43020e86b7e4f6266b67d3620d3e')

build() {
  cd $startdir/src/mozilla
  patch -Np0 -i $startdir/src/mozilla-1.7.3-ft2.patch || return 1
  patch -Np0 -i $startdir/src/launcher.patch || return 1
  sed "s@#CFLAGS#@$CFLAGS@g" $startdir/src/mozconfig >.mozconfig
  export MOZ_PHOENIX=1

  # fix typo (mozilla bug 258177)
  sed -i "s@destdir@DESTDIR@" $startdir/src/mozilla/browser/app/Makefile.in || return 1

  ./configure
  make || return 1
  make DESTDIR=$startdir/pkg install || return 1

  # initialize some data so that firefox will run as a non-root user
  cd $startdir/pkg/opt/mozilla/lib/firefox-$pkgver/
  tar zxf $startdir/src/mozilla-firefox-nonroot.tar.gz || return 1

  cd $startdir/pkg/opt/mozilla/lib && ln -sf firefox-$pkgver firefox

  rm -rf $startdir/pkg/opt/mozilla/share
  rm -rf $startdir/pkg/opt/mozilla/lib/pkgconfig
  rm -rf $startdir/pkg/opt/mozilla/include

  # Remove useless default profile setup
  rm -rf $startdir/pkg/opt/mozilla/bin/defaults

  # Place these in /usr until all common desktops support icon lookups in XDG_DATA_DIRS
  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/
}

If you guys want I'll supply a binary.


http://wiki2.archlinux.org/

Read it. Love it. Live it. Or die.

Offline

#2 2005-04-04 06:53:15

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

Re: [new] firefox 1.0.2

# fix typo (mozilla bug 258177)
  sed -i "s@destdir@DESTDIR@" $startdir/src/mozilla/browser/app/Makefile.in || return 1

Why is it still here, this bug has been marked RESOLVED, and I can compile mozilla firefox without any problem without this patch.

Anyway I recommend to try mozilla-firefox-cvs or mozilla official nightly binary, which runs faster in my experience.

Offline

#3 2005-04-04 07:14:23

miqorz
Member
Registered: 2004-12-31
Posts: 475

Re: [new] firefox 1.0.2

Meh, All I did was change the version number and all worked fine.

I just posted this so people would quit bitching.


http://wiki2.archlinux.org/

Read it. Love it. Live it. Or die.

Offline

#4 2005-04-04 18:45:19

miqorz
Member
Registered: 2004-12-31
Posts: 475

Re: [new] firefox 1.0.2

I just used the current 1.0.1 PKGBUILD from abs and changed the version number.


http://wiki2.archlinux.org/

Read it. Love it. Live it. Or die.

Offline

#5 2005-04-04 19:27:04

puntmuts
Member
Registered: 2005-02-22
Posts: 138

Re: [new] firefox 1.0.2

The official version was released. No need to kludge with pkgbuilds big_smile


Out / Gone
Mirgrating all my machines off ArchLinux . No longer part of the ArchLinux community / users .
Done. Goodbye.

Offline

#6 2005-04-04 19:36:35

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: [new] firefox 1.0.2

Thanks. You think this PKGBUILD will work for the next update?

Offline

#7 2005-04-04 19:50:17

miqorz
Member
Registered: 2004-12-31
Posts: 475

Re: [new] firefox 1.0.2

Gullible Jones wrote:

Thanks. You think this PKGBUILD will work for the next update?

Probably.


http://wiki2.archlinux.org/

Read it. Love it. Live it. Or die.

Offline

#8 2005-04-04 21:17:17

sigSEGV
Member
Registered: 2005-03-31
Posts: 9

Re: [new] firefox 1.0.2

You might need that sooner than you think.  1.0.3 should be out within hours due to a pretty severe security vulnerability in 1.0.2.

Offline

#9 2005-04-04 22:22:08

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: [new] firefox 1.0.2

Ahh... Good to hear that the Mozilla guys are trying to stay on top of things.

Offline

Board footer

Powered by FluxBB