#Maintainer: Thorsten Muehlfelder pkgname=opera pkgver=11.10 _buildver=2092 pkgrel=1tm #arch=$(uname -m | sed -e "s,i[456]86,i386,") arch=i386 source=("http://ftp.opera.com/pub/opera/linux/${pkgver/./}/opera-${pkgver}-${_buildver}.${arch}.linux.tar.xz") url="http://www.opera.com/" options=("noautodotnew") docs=("LICENSE") slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname (a lite, fast and full-featured Internet browser)" "Opera is a full-featured Internet tool, most notably a fully" "standard conforming Opera includes pop-up blocking, tabbed browsing," "integrated searches, and advanced functions like a password manager," "mouse gestures, native Scalable Vector Graphics (SVG) support, an" "email program, RSS newsfeeds, and IRC chat. It is designed to be" "fast and highly customizable." ) build() { cd $startdir/src/opera-${pkgver}-${_buildver}.${arch}.linux mkdir -p $startdir/pkg/usr/ ./install --prefix /usr --repackage $startdir/pkg/usr # fix lib location for x86_64 systems if [ ! -z $LIBDIRSUFFIX ]; then mv $startdir/pkg/usr/lib $startdir/pkg/usr/lib$LIBDIRSUFFIX sed -i s#/usr/lib/#/usr/lib$LIBDIRSUFFIX/#g $startdir/pkg/usr/bin/opera* fi # now fix the desktop files # match @@{ and all chars but not }. Then match }. This is a # workaround for a ungreedy regexp #sed -i "s/@@{[^}]*}//g" $startdir/pkg/usr/share/applications/*.desktop #sed -i "s#Exec=/bin/#Exec=#" $startdir/pkg/usr/share/applications/*.desktop # fix the docs mv $startdir/pkg/usr/share/{doc,man} $startdir/pkg/usr/. mv $startdir/pkg/usr/doc/${pkgname} $startdir/pkg/usr/doc/${pkgname}-${pkgver} # create a link for the license, needed by opera ln -sf /usr/doc/${pkgname}-${pkgver}/LICENSE $startdir/pkg/usr/share/${pkgname}/defaults/license.txt }