You are not logged in.

#1 2004-07-26 00:05:55

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

PKGBUILD: opera with shared qt

I know there is now opera in staging but it's using static version of qt. I wanted to try shared version so I modified original PKGBUILD from http://xentac.net/tur/tags/staging/opera/

pkgname=opera
pkgver=7.53
pkgrel=1
pkgdesc="Opera web browser (shared qt)."
url="http://www.opera.com"
depends=('lesstif' 'bash' 'qt')
source=(opera.sh ftp://ftp.opera.com/pub/$pkgname/linux/753/final/en/i386/shared/$pkgname-$pkgver-20040716.5-shared-qt.i386-en.tar.gz)
md5sums=('ea31aacc2ecf99d5328a0171e4c904a1' 'e4a6c3d1571c61a5d07dcfabdfdac99c')

build() {
  cd $startdir/src/$pkgname-7.53-20040716.5-shared-qt.i386-en
  sed -i "/if con_firm "Do you want to install them"/,/fi$/s|^|#|" 
        $startdir/src/$pkgname-7.53-20040716.5-shared-qt.i386-en/install.sh
  ./install.sh --prefix=$startdir/pkg/opt/$pkgname
  sed -i "s|$startdir/pkg/opt|/opt|g" $startdir/pkg/opt/$pkgname/bin/opera
  sed -i "s|$startdir/pkg/opt/$pkgname|/opt/$pkgname|g" 
        $startdir/pkg/opt/$pkgname/share/opera/java/opera.policy
  rm -r $startdir/pkg/opt/$pkgname/share/doc
  mkdir -p $startdir/pkg/etc/profile.d/
  cp $startdir/opera.sh $startdir/pkg/etc/profile.d/
  chmod +x $startdir/pkg/etc/profile.d/opera.sh
  cp config/* $startdir/pkg/etc/
}

You will also need opera.sh file from http://xentac.net/tur/tags/staging/opera/ or if you installed opera package before you can find one in /etc/profile.d/ If makepkg will complain about md5 sums remove them and regenerate with makepkg -g if you want.

The main reason to make this PKGBUILD was ugly font rendering (no antialiasing) in static version in the menu toolbar. It's described in this opera knowledgebase document http://www.opera.com/support/search/sup … 1&session=
The shared version uses nice antialiasing :-)
The changelog for this version can be found here http://www.opera.com/linux/changelogs/753/?session=

I changed dependencies of course. Bash and qt cover also other dependencies. According to http://www.opera.com/support/search/sup … 4&session= and http://www.opera.com/support/search/sup … 4&session= opera also needs libXm which is part of lesstif package. It's not a critical dependency but java and some netscape plugins may not work without it.

I also added one sed line to get rid of asking questions by opera installer during package building process.Please, ignore the message about files in /etc that cannot be prefixed - they are installed "manually" at the end of the build process.

Offline

#2 2004-08-26 10:32:46

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,269

Re: PKGBUILD: opera with shared qt

updated to 7.54
and replaced the static version in staging with your version
enjoy

Offline

#3 2004-08-26 12:16:50

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: PKGBUILD: opera with shared qt

Thanks. I missed the new release. I'll upgrade my opera ASAP I get back home.

Offline

Board footer

Powered by FluxBB