diff options
author | Robby Workman <rw@rlworkman.net> | 2010-07-02 23:14:43 -0500 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-07-02 23:14:43 -0500 |
commit | 1b16da553e1538f75f4b7abcc89433ee3e9430d5 (patch) | |
tree | ca526a76873ec1cb24466dd0800674f0ab31e124 /network/opera/opera.SlackBuild | |
parent | fa8e13b34effa4a1dc8f546d618c8af2a46083fc (diff) | |
download | slackbuilds-1b16da553e1538f75f4b7abcc89433ee3e9430d5.tar.gz |
network/opera: Updated for version 10.60.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'network/opera/opera.SlackBuild')
-rw-r--r-- | network/opera/opera.SlackBuild | 66 |
1 files changed, 12 insertions, 54 deletions
diff --git a/network/opera/opera.SlackBuild b/network/opera/opera.SlackBuild index 797bc0a4fb..c99dbc9ca9 100644 --- a/network/opera/opera.SlackBuild +++ b/network/opera/opera.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for opera # Copyright 2006 Martin Lefebvre <dadexter@gmail.com> -# Copyright 2008,2009 Robby Workman, Northport, Alabama, USA +# Copyright 2008,2009,2010 Robby Workman, Northport, Alabama, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,16 +24,15 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=opera -VERSION=10.10 +VERSION=10.60 +REVNO=6386 BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -# Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i386 ;; arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: *) ARCH=$( uname -m ) ;; esac fi @@ -54,66 +53,25 @@ else exit 1 fi -# Don't bother this - it's for easier manipulation and sed'ing later -TOPDIR=$(tar tf $CWD/$PRGNAM-${VERSION}.gcc4-qt4.${ARCH}.tar.bz2 |head -1) - rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -cd $TMP -rm -rf $TOPDIR -tar xvf $CWD/$PRGNAM-${VERSION}.gcc4-qt4.${ARCH}.tar.bz2 -cd $TOPDIR +cd $PKG +rm -rf $PRGNAM-${VERSION}-${REVNO}.${ARCH} +rpm2cpio < $CWD/$PRGNAM-${VERSION}-${REVNO}.${ARCH}.rpm | cpio -imdv chown -R root:root . chmod -R u+w,go+r-w,a-s . -# No, the --DESTDIR isn't documented. In fact, the presence of OPERADESTDIR -# at the top of install.sh is damn misleading. I shouldn't have to actually -# read the install script to figure out DESTDIR: the --help should show it. -# --rworkman -./install.sh \ - --prefix=/usr \ - --exec_prefix=/usr/lib${LIBDIRSUFFIX}/opera \ - --sharedir=/usr/share/opera \ - --wrapperdir=/usr/bin \ - --mandir=/usr/man \ - --docdir=/usr/doc/opera-$VERSION \ - --plugindir=/usr/lib${LIBDIRSUFFIX}/mozilla/plugins \ - --DESTDIR=$PKG - -# Fix a potential security issue (minor, but still) with a hardcoded path to -# the build directory lingering in /usr/bin/opera -# Theoretically, a malicious user looks at that in /usr/bin/opera and later -# recreates the directory and does some unknown havoc. It may very well be -# completely safe and unexploitable and I'm just being Chicken Little here, -# but it's easy enough to fix and I'd rather be safe than sorry. --rworkman -sed -i "s%$TMP/$TOPDIR\$0%\$PWD/\${0#./}%g" $PKG/usr/bin/opera +[ "$LIBDIRSUFFIX" = "64" ] && patch -p1 < $CWD/fixup_libdir.diff +[ "$LIBDIRSUFFIX" = "64" ] && mv $PKG/usr/lib $PKG/usr/lib${LIBDIRSUFFIX} -# /usr/bin/opera doesn't look in the right places for 64bit java. Fix it. -if [ "$ARCH" = "x86_64" ]; then -sed -i -e "/PREFIXES=\"/,/\/opt\"/ s:/usr/lib:/usr/lib64:" \ - -e "s:i386:amd64:" $PKG/usr/bin/opera -fi - -# Include config files -mv etc $PKG -mv $PKG/etc/operaprefs_default.ini $PKG/etc/operaprefs_default.ini.new -mv $PKG/etc/operaprefs_fixed.ini $PKG/etc/operaprefs_fixed.ini.new - -# Add an opera.desktop file and link the icon to /usr/share/pixmaps -mv usr/share/icons usr/share/pixmaps $PKG/usr/share -mkdir -p $PKG/usr/share/applications -cat $CWD/opera.desktop > $PKG/usr/share/applications/opera.desktop +mv $PKG/usr/share/man $PKG/usr +mv $PKG/usr/share/doc $PKG/usr +mv $PKG/usr/doc/opera $PKG/usr/doc/opera-$VERSION +( cd $PKG/usr/doc ; ln -s opera-$VERSION opera ) # Add a copy of the build script to the docs cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -# Compress the man page -gzip -9 $PKG/usr/man/man?/*.? - -# Strip symbols we don't need -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh |